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:
parent
130cbfb0e9
commit
9fc755f166
15
tools/gate/airsloop/Jenkinsfile
vendored
15
tools/gate/airsloop/Jenkinsfile
vendored
@ -128,11 +128,11 @@ def pegleg_site_collect = {
|
|||||||
def prom_config_gen = {
|
def prom_config_gen = {
|
||||||
stage ("Promenade Config Gen") {
|
stage ("Promenade Config Gen") {
|
||||||
|
|
||||||
sh "mkdir -p promenade-bundle"
|
withEnv(['TERM_OPTS=-t']) {
|
||||||
|
sh "mkdir -p promenade-bundle"
|
||||||
opts = '--rm -t -w /target -v $(pwd):/target'
|
sh "sudo -E tools/airship promenade build-all --validators" +
|
||||||
cmd = "promenade build-all --validators -o promenade-bundle ${SITE_NAME}/*.yaml"
|
" -o promenade-bundle /target/${SITE_NAME}/*.yaml"
|
||||||
sh "sudo docker run ${opts} ${PROMENADE_IMAGE} ${cmd}"
|
}
|
||||||
|
|
||||||
sh 'tar czf promenade-bundle.tar.gz promenade-bundle'
|
sh 'tar czf promenade-bundle.tar.gz promenade-bundle'
|
||||||
archiveArtifacts 'promenade-bundle.tar.gz'
|
archiveArtifacts 'promenade-bundle.tar.gz'
|
||||||
@ -208,7 +208,7 @@ def genesis_deploy = {
|
|||||||
|
|
||||||
def shipyard_deploy = { action ->
|
def shipyard_deploy = { action ->
|
||||||
try {
|
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]
|
def token = req.getHeaders()["X-Subject-Token"][0]
|
||||||
shipyard2.uploadConfig(uuid, token, SHIPYARD_URL, SITE_NAME)
|
shipyard2.uploadConfig(uuid, token, SHIPYARD_URL, SITE_NAME)
|
||||||
|
|
||||||
@ -222,9 +222,6 @@ def shipyard_deploy = { action ->
|
|||||||
debug_report()
|
debug_report()
|
||||||
error(err)
|
error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh.cmd(GENESIS_CREDS, GENESIS_IP,
|
|
||||||
'sudo kubectl get pods --all-namespaces -o wide -a=false')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user