Skip to content
Snippets Groups Projects

Feat1

Open Bo-Chun Chen requested to merge feat1 into master
Files
2
+ 4
4
@@ -9,7 +9,7 @@
@@ -9,7 +9,7 @@
agent {
agent {
docker {
docker {
image 'cytopia/ansible-lint'
image 'cytopia/ansible-lint'
args '--entrypoint= '
args '--entrypoint= -u root:root'
}
}
}
}
steps {
steps {
@@ -43,7 +43,7 @@
@@ -43,7 +43,7 @@
APP_CRED = credentials('uab-dev-openrc')
APP_CRED = credentials('uab-dev-openrc')
}
}
steps {
steps {
sh '''
sh '''#!/bin/bash
echo "hosts: files dns" > /etc/nsswitch.conf
echo "hosts: files dns" > /etc/nsswitch.conf
. ${APP_CRED}
. ${APP_CRED}
floatingip=(`openstack floating ip create -c id -c floating_ip_address -f value bright-external-flat-externalnet`)
floatingip=(`openstack floating ip create -c id -c floating_ip_address -f value bright-external-flat-externalnet`)
@@ -58,11 +58,11 @@
@@ -58,11 +58,11 @@
post {
post {
success {
success {
updateGitlabCommitStatus name: 'Build image', state: 'success'
updateGitlabCommitStatus name: 'Build image', state: 'success'
echo 'build ood image success'
echo 'build image success'
}
}
failure {
failure {
updateGitlabCommitStatus name: 'Build image', state: 'failed'
updateGitlabCommitStatus name: 'Build image', state: 'failed'
echo 'build ood image failed'
echo 'build image failed'
}
}
}
}
}
}
Loading