Skip to content

Commit 43bdf2e

Browse files
authored
Update Jenkins_244u176
stable version
1 parent 0f95650 commit 43bdf2e

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

Jenkins_244u176

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ pipeline {
1818
}
1919
}
2020
stage('docker build') {
21-
when {
22-
anyOf { branch 'develop'; branch 'main' }
23-
}
21+
2422

2523
agent {
2624
node {
@@ -45,9 +43,7 @@ pipeline {
4543

4644
}
4745
stage('Pull and Tag Images') {
48-
when {
49-
anyOf { branch 'develop'; branch 'main' }
50-
}
46+
5147

5248
agent {
5349
node {
@@ -62,9 +58,7 @@ pipeline {
6258

6359
}
6460
stage('Deploy to test'){
65-
when {
66-
branch 'main'
67-
}
61+
6862
parallel {
6963

7064

@@ -78,11 +72,11 @@ pipeline {
7872

7973
steps {
8074
echo "pull dingo-command images to test on second node"
81-
// dir('/home/cicd/kolla-ansible/tools') {
82-
// sh 'ansible-playbook -e @/home/cicd/envs/functional_test_env/globals.yml -e @/home/cicd/envs/functional_test_env/passwords.yml --tags dingo-command -e openstack_tag=${IMAGE_TAG} -e CONFIG_DIR=/home/cicd/envs/functional_test_env -e kolla_action=pull ../ansible/site.yml --inventory /home/cicd/envs/functional_test_env/multinode -e docker_namespace=openstack -e docker_registry=harbor.zetyun.cn'
83-
// echo 'deploy images to develop on second node'
84-
// sh 'ansible-playbook -e @/home/cicd/envs/functional_test_env/globals.yml -e @/home/cicd/envs/functional_test_env/passwords.yml --tags dingo-command -e openstack_tag=${IMAGE_TAG} -e CONFIG_DIR=/home/cicd/envs/functional_test_env -e kolla_action=upgrade ../ansible/site.yml --inventory /home/cicd/envs/functional_test_env/multinode -e docker_namespace=openstack -e docker_registry=harbor.zetyun.cn'
85-
// }
75+
dir('/home/cicd/kolla-ansible/tools') {
76+
sh 'ansible-playbook -e @/home/cicd/envs/functional_test_env/globals.yml -e @/home/cicd/envs/functional_test_env/passwords.yml --tags dingo-command -e openstack_tag=${IMAGE_TAG} -e CONFIG_DIR=/home/cicd/envs/functional_test_env -e kolla_action=pull ../ansible/site.yml --inventory /home/cicd/envs/functional_test_env/multinode -e docker_namespace=openstack -e docker_registry=harbor.zetyun.cn'
77+
echo 'deploy images to develop on second node'
78+
sh 'ansible-playbook -e @/home/cicd/envs/functional_test_env/globals.yml -e @/home/cicd/envs/functional_test_env/passwords.yml --tags dingo-command -e openstack_tag=${IMAGE_TAG} -e CONFIG_DIR=/home/cicd/envs/functional_test_env -e kolla_action=upgrade ../ansible/site.yml --inventory /home/cicd/envs/functional_test_env/multinode -e docker_namespace=openstack -e docker_registry=harbor.zetyun.cn'
79+
}
8680
}
8781
}
8882
}

0 commit comments

Comments
 (0)