File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ parameters:
77 default : true
88 - name : enableAnalysis
99 type : boolean
10- default : true
10+ default : true
11+ - name : releaseMethod
12+ type : string
13+ default : ' liquibase'
14+ values :
15+ - ' liquibase'
16+ - ' flyway'
1117 - name : buildDatabase
1218 type : object
1319 default :
@@ -234,14 +240,15 @@ stages:
234240 script : ${{ script.script}}
235241 displayName : ${{ script.displayName}}
236242 # Execute Liquibase
237- - ${{ each liquibase in builddatabases.runliquibase }} :
238- - template : t-task-extend-sqlcl-liquibase.yml
239- parameters :
240- connectionString : ${{ builddatabases.connectionString}}
241- work_dir : ${{ liquibase.work_dir }}
242- user : ${{ liquibase.user }}
243- password : ${{ liquibase.password }}
244- masterchangelogfile : ${{ liquibase.masterchangelogfile }}
243+ - $ {{ if eq(builddatabases.releaseMethod,'liquibase') }} :
244+ - ${{ each liquibase in builddatabases.runliquibase }} :
245+ - template : t-task-extend-sqlcl-liquibase.yml
246+ parameters :
247+ connectionString : ${{ builddatabases.connectionString}}
248+ work_dir : ${{ liquibase.work_dir }}
249+ user : ${{ liquibase.user }}
250+ password : ${{ liquibase.password }}
251+ masterchangelogfile : ${{ liquibase.masterchangelogfile }}
245252 # Execute Flyway
246253 - ${{ each flyway in builddatabases.runflyway }} :
247254 - template : t-task-extend-flyway.yml
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ extends:
3838 jdbcConnectionString : " UTBUILD:1521:ORCLCDB"
3939 environment : " build"
4040 artifactName : ${{ variables.artifactName }}
41+ releaseMethod : " flyway"
4142 packages :
4243 - name : downloadSqlcl
4344 download_location : " $(Build.BinariesDirectory)/sqlcl-latest.zip"
@@ -103,7 +104,7 @@ extends:
103104 containerRegistry : ${{ variables.containerRegistry }}
104105 dockerRepo : ${{ variables.dockerRepo }}
105106 createDatabase :
106- - dbname : UTTEST
107+ - dbname : UTBUILD
107108 oracleVersion : " 19c-se2-small"
108109 dockerPortMap : " 1521"
109110 dockerOptions : " --shm-size=1g"
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ extends:
3737 connectionString : " 127.0.0.1:1521/ORCLCDB"
3838 environment : " build"
3939 artifactName : ${{ variables.artifactName }}
40+ releaseMethod : " liquibase"
4041 packages :
4142 - name : sqlcl
4243 download_location : " $(Build.BinariesDirectory)/sqlcl-latest.zip"
You can’t perform that action at this time.
0 commit comments