Skip to content

Commit

Permalink
fix: add OSCAR cluster before submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Aug 9, 2024
1 parent 0ed1ab3 commit 80c1374
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ pipeline {

steps {
script {
withFolderProperties {
oscar_cluster = env.OSCAR_CLUSTER
oscar_endpoint = env.OSCAR_ENDPOINT
}

// Download OSCAR CLI from https
sh "curl -L -o oscar-cli https://github.com/grycap/oscar-cli/releases/download/v1.7.1/oscar-cli"
sh "chmod +x oscar-cli"
Expand All @@ -236,6 +241,9 @@ pipeline {

writeFile file: "oscar-metadata.json", text: oscar_meta as String

// Add OSCAR Cluster
sh "./oscar-cli cluster add ${oscar_cluster} ${oscar_endpoint}"

// Update OSCAR services
sh "./oscar-cli service run update-modules-service --input oscar-metadata.json"
}
Expand Down

0 comments on commit 80c1374

Please sign in to comment.