Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 7dc60b3

Browse files
committed
chore(build): update jenkinsfile
1 parent 8e7247a commit 7dc60b3

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Jenkinsfile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
stage('Source') {
22
node {
3-
sh 'cd /opt/centreon-build && git pull && cd -'
3+
sh 'setup_centreon_build.sh'
44
dir('centreon-poller-display') {
55
checkout scm
66
}
7-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-source.sh'
7+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-source.sh'
88
source = readProperties file: 'source.properties'
99
env.VERSION = "${source.VERSION}"
1010
env.RELEASE = "${source.RELEASE}"
@@ -15,8 +15,8 @@ try {
1515
stage('Unit tests') {
1616
parallel 'centos6': {
1717
node {
18-
sh 'cd /opt/centreon-build && git pull && cd -'
19-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-unittest.sh centos6'
18+
sh 'setup_centreon_build.sh'
19+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-unittest.sh centos6'
2020
step([
2121
$class: 'XUnitBuilder',
2222
thresholds: [
@@ -29,8 +29,8 @@ try {
2929
},
3030
'centos7': {
3131
node {
32-
sh 'cd /opt/centreon-build && git pull && cd -'
33-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-unittest.sh centos7'
32+
sh 'setup_centreon_build.sh'
33+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-unittest.sh centos7'
3434
step([
3535
$class: 'XUnitBuilder',
3636
thresholds: [
@@ -61,14 +61,14 @@ try {
6161
stage('Package') {
6262
parallel 'centos6': {
6363
node {
64-
sh 'cd /opt/centreon-build && git pull && cd -'
65-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-package.sh centos6'
64+
sh 'setup_centreon_build.sh'
65+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-package.sh centos6'
6666
}
6767
},
6868
'centos7': {
6969
node {
70-
sh 'cd /opt/centreon-build && git pull && cd -'
71-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-package.sh centos7'
70+
sh 'setup_centreon_build.sh'
71+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-package.sh centos7'
7272
}
7373
}
7474
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
@@ -79,14 +79,14 @@ try {
7979
stage('Bundle') {
8080
parallel 'centos6': {
8181
node {
82-
sh 'cd /opt/centreon-build && git pull && cd -'
83-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-bundle.sh centos6'
82+
sh 'setup_centreon_build.sh'
83+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-bundle.sh centos6'
8484
}
8585
},
8686
'centos7': {
8787
node {
88-
sh 'cd /opt/centreon-build && git pull && cd -'
89-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-bundle.sh centos7'
88+
sh 'setup_centreon_build.sh'
89+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-bundle.sh centos7'
9090
}
9191
}
9292
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
@@ -97,8 +97,8 @@ try {
9797
stage('Acceptance tests') {
9898
parallel 'centos6': {
9999
node {
100-
sh 'cd /opt/centreon-build && git pull && cd -'
101-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-acceptance.sh centos6'
100+
sh 'setup_centreon_build.sh'
101+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-acceptance.sh centos6'
102102
step([
103103
$class: 'XUnitBuilder',
104104
thresholds: [
@@ -112,8 +112,8 @@ try {
112112
},
113113
'centos7': {
114114
node {
115-
sh 'cd /opt/centreon-build && git pull && cd -'
116-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-acceptance.sh centos7'
115+
sh 'setup_centreon_build.sh'
116+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-acceptance.sh centos7'
117117
step([
118118
$class: 'XUnitBuilder',
119119
thresholds: [
@@ -133,8 +133,8 @@ try {
133133
if (env.BRANCH_NAME == '1.6.x') {
134134
stage('Delivery') {
135135
node {
136-
sh 'cd /opt/centreon-build && git pull && cd -'
137-
sh '/opt/centreon-build/jobs/poller-display/3.4/mon-poller-display-delivery.sh'
136+
sh 'setup_centreon_build.sh'
137+
sh './centreon-build/jobs/poller-display/3.4/mon-poller-display-delivery.sh'
138138
}
139139
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
140140
error('Delivery stage failure.');

0 commit comments

Comments
 (0)