Skip to content

Commit ee8b9b5

Browse files
committed
Adding database build task
1 parent ad178f4 commit ee8b9b5

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

templates/t-extend-database-build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ parameters:
99
- name: utplsqlVersion
1010
default: ""
1111
- name: utplsqlDir
12-
default: ""
12+
default: ""
13+
- name: addToPaths
14+
type: object
15+
default:
16+
- name: path
17+
default: ""
1318
- name: targetDatabases
1419
type: object
1520
default:
@@ -44,6 +49,15 @@ stages:
4449
pool:
4550
vmImage: ubuntu-latest
4651
jobs:
52+
- job: AddToPath
53+
displayName: Add binaries to Path
54+
steps:
55+
- checkout: none
56+
- ${{ each addpath in parameters.addToPaths }}:
57+
- bash: |
58+
echo "##vso[task.prependpath]${{addpath.path}}"
59+
displayName: 'Add To path ${{addpath.path}}'
60+
4761
- job: CreateDatabase
4862
displayName: Create Database
4963
steps:

templates/t-extend-download-binaries.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ parameters:
1414
- name: url
1515
default: ""
1616
- name: archive
17-
default: "zip"
18-
- name: addToPath
19-
default: ""
17+
default: "zip"
2018
- name: clean
2119
type: boolean
2220
default: true
@@ -44,11 +42,6 @@ stages:
4442
chmod -R u+x ${{package.unpack_location}}
4543
displayName: 'Unzip ${{package.name}}'
4644
47-
- ${{ if package.addToPath }}:
48-
- bash: |
49-
echo "##vso[task.prependpath]${{package.addToPath}}"
50-
displayName: 'Add To path ${{package.name}}'
51-
5245
- ${{ if coalesce(package.clean,true) }}:
5346
- bash: |
5447
rm -rf ${{package.download_location}}

utlplsql-demo-project.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,20 @@ stages:
2121
unpack_location: "$(Build.BinariesDirectory)"
2222
url: "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip"
2323
archive: "zip"
24-
addtoPath: "$(SQLCL_DIR)/bin"
25-
24+
2625
- name: utlplsqlcli
2726
download_location: "$(Build.BinariesDirectory)/utPLSQL-cli.zip"
2827
unpack_location: "$(Build.BinariesDirectory)"
2928
url: "https://github.com/utPLSQL/utPLSQL-cli/releases/download/$(UTPLSQL_CLI_VERSION)/utPLSQL-cli.zip"
3029
archive: "zip"
31-
addToPath: "$(UTPLSQL_CLI_DIR)/bin"
3230

3331
- template: templates/t-extend-database-build.yml
3432
parameters:
3533
utplsqlVersion: ${UTPLSQL_VERSION}
3634
utplsqlDir: ${UTPLSQL_DIR}
35+
addToPaths:
36+
- path: "$(SQLCL_DIR)/bin"
37+
- path: "$(UTPLSQL_CLI_DIR)/bin"
3738
targetDatabases:
3839
- oracleVersion: "19c-se2-small"
3940
connectionString: "127.0.0.1:1521/ORCLCDB"

0 commit comments

Comments
 (0)