S
S
Smilley2021-06-29 14:45:24
SQL
Smilley, 2021-06-29 14:45:24

How to organize DevOps for SQL scripts?

Hello!
There is a need to periodically develop SQL scripts for one-time runs.
The scripts should be automatically checked by SonarQube and CheckMarx inside Pipeline and uploaded to the Nexus repository.
Tell me, please, how to properly organize the process,
start a bunch of repositories for each script, build the same bunch of pipelines?
Or what's the best way to do it all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2021-06-29
@Smilley

Do what is more convenient.
For example, I would do this:

  1. One repository describing the pipeline in master
  2. A branch is taken from master, the script is committed to it
  3. The pipeline works according to the script
  4. After the successful passage of the pipeline, the branch is deleted (optional, I assume that since the scripts are one-time and not versioned, it makes no sense to store them in the repository) or merges into a certain archive branch

D
Dmitry, 2021-06-29
@dmtrrr

Why not store scripts in git?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question