File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ pipeline {
18
18
}
19
19
}
20
20
stage('docker build') {
21
- when {
22
- anyOf { branch 'develop'; branch 'main' }
23
- }
21
+
24
22
25
23
agent {
26
24
node {
@@ -45,9 +43,7 @@ pipeline {
45
43
46
44
}
47
45
stage('Pull and Tag Images') {
48
- when {
49
- anyOf { branch 'develop'; branch 'main' }
50
- }
46
+
51
47
52
48
agent {
53
49
node {
@@ -62,9 +58,7 @@ pipeline {
62
58
63
59
}
64
60
stage('Deploy to test'){
65
- when {
66
- branch 'main'
67
- }
61
+
68
62
parallel {
69
63
70
64
@@ -78,11 +72,11 @@ pipeline {
78
72
79
73
steps {
80
74
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
+ }
86
80
}
87
81
}
88
82
}
You can’t perform that action at this time.
0 commit comments