Skip to content

Commit

Permalink
Merge pull request #730 from Nordix/fix-image-building-tests/sunnat
Browse files Browse the repository at this point in the history
Passes RT credentials to image building
  • Loading branch information
metal3-io-bot authored May 3, 2024
2 parents cc64788 + ad7ddce commit 105466c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.

This file was deleted.

6 changes: 4 additions & 2 deletions jenkins/jobs/image_building.pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ pipeline {
steps {
echo 'Building Ubuntu CI image'
withCredentials([
usernamePassword(credentialsId: 'metal3ci_city_cloud_openstack_credentials', usernameVariable: 'OS_USERNAME', passwordVariable: 'OS_PASSWORD')
usernamePassword(credentialsId: 'metal3ci_city_cloud_openstack_credentials', usernameVariable: 'OS_USERNAME', passwordVariable: 'OS_PASSWORD'),
usernamePassword(credentialsId: 'infra-nordix-artifactory-api-key', usernameVariable: 'RT_USER', passwordVariable: 'RT_TOKEN')
]) {
catchError([stageResult: 'FAILURE', message: "Failed to build Ubuntu CI image"]) {
sh "./jenkins/image_building/build-image.sh"
Expand All @@ -72,7 +73,8 @@ pipeline {
steps {
echo 'Building Centos CI image'
withCredentials([
usernamePassword(credentialsId: 'metal3ci_city_cloud_openstack_credentials', usernameVariable: 'OS_USERNAME', passwordVariable: 'OS_PASSWORD')
usernamePassword(credentialsId: 'metal3ci_city_cloud_openstack_credentials', usernameVariable: 'OS_USERNAME', passwordVariable: 'OS_PASSWORD'),
usernamePassword(credentialsId: 'infra-nordix-artifactory-api-key', usernameVariable: 'RT_USER', passwordVariable: 'RT_TOKEN')
]) {
catchError([stageResult: 'FAILURE', message: "Failed to build Centos CI image"]) {
sh "./jenkins/image_building/build-image.sh"
Expand Down

0 comments on commit 105466c

Please sign in to comment.