Using tools/airship wrapper in airsloop Jenkins jobs

In order to test new changes for promenade https://review.opendev.org/657953
need to adjust airsloop pipeline.

Change-Id: Idd23e06182b67fee5675a504f2b87e7c2caeb685
This commit is contained in:
Alexander Noskov 2019-06-27 01:38:30 -05:00
parent 130cbfb0e9
commit 9fc755f166

View File

@ -128,11 +128,11 @@ def pegleg_site_collect = {
def prom_config_gen = {
stage ("Promenade Config Gen") {
sh "mkdir -p promenade-bundle"
opts = '--rm -t -w /target -v $(pwd):/target'
cmd = "promenade build-all --validators -o promenade-bundle ${SITE_NAME}/*.yaml"
sh "sudo docker run ${opts} ${PROMENADE_IMAGE} ${cmd}"
withEnv(['TERM_OPTS=-t']) {
sh "mkdir -p promenade-bundle"
sh "sudo -E tools/airship promenade build-all --validators" +
" -o promenade-bundle /target/${SITE_NAME}/*.yaml"
}
sh 'tar czf promenade-bundle.tar.gz promenade-bundle'
archiveArtifacts 'promenade-bundle.tar.gz'
@ -208,7 +208,7 @@ def genesis_deploy = {
def shipyard_deploy = { action ->
try {
def req = keystone.retrieveToken(SHIPYARD_PASSWD, KEYSTONE_URL, false)
def req = keystone.retrieveToken(SHIPYARD_CREDS, KEYSTONE_URL)
def token = req.getHeaders()["X-Subject-Token"][0]
shipyard2.uploadConfig(uuid, token, SHIPYARD_URL, SITE_NAME)
@ -222,9 +222,6 @@ def shipyard_deploy = { action ->
debug_report()
error(err)
}
ssh.cmd(GENESIS_CREDS, GENESIS_IP,
'sudo kubectl get pods --all-namespaces -o wide -a=false')
}