Skip to content

Commit

Permalink
Merge pull request #13 from centreon/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
Jean-Baptiste authored Sep 6, 2017
2 parents d7f0f2a + 66795f4 commit fd0c5ac
Show file tree
Hide file tree
Showing 431 changed files with 27,548 additions and 10,179 deletions.
35 changes: 29 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ try {
failedNewAll: '0'
])
}
},
'debian9': {
node {
sh 'cd /opt/centreon-build && git pull && cd -'
sh '/opt/centreon-build/jobs/web/3.5/mon-web-unittest.sh debian9'
step([
$class: 'XUnitBuilder',
thresholds: [
[$class: 'FailedThreshold', failureThreshold: '0'],
[$class: 'SkippedThreshold', failureThreshold: '0']
],
tools: [[$class: 'PHPUnitJunitHudsonTestType', pattern: 'ut.xml']]
])
}
}
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
error('Unit tests stage failure.');
Expand All @@ -70,6 +84,12 @@ try {
sh 'cd /opt/centreon-build && git pull && cd -'
sh '/opt/centreon-build/jobs/web/3.5/mon-web-package.sh centos7'
}
},
'debian9': {
node {
sh 'cd /opt/centreon-build && git pull && cd -'
sh '/opt/centreon-build/jobs/web/3.5/mon-web-package.sh debian9'
}
}
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
error('Package stage failure.');
Expand Down Expand Up @@ -144,14 +164,17 @@ try {
build job: 'centreon-poller-display/master', wait: false
build job: 'centreon-pp-manager/master', wait: false
build job: 'centreon-bam/master', wait: false
build job: 'centreon-map-web', wait: false
build job: 'des-mbi-bundle-centos6', wait: false
build job: 'des-mbi-bundle-centos7', wait: false
}
}
finally {
buildStatus = currentBuild.result ?: 'SUCCESS';
if ((buildStatus != 'SUCCESS') && (env.BRANCH_NAME == 'master')) {
slackSend channel: '#monitoring-metrology', message: "@channel Centreon Web build ${env.BUILD_NUMBER} of branch ${env.BRANCH_NAME} was broken by ${source.COMMITTER}. Please fix it ASAP."
} catch(e) {
if (env.BRANCH_NAME == 'master') {
slackSend channel: "#monitoring-metrology",
color: "#F30031",
message: "*FAILURE*: `CENTREON WEB` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}> on branch ${env.BRANCH_NAME}\n" +
"*COMMIT*: <https://github.com/centreon/centreon/commit/${source.COMMIT}|here> by ${source.COMMITTER}\n" +
"*INFO*: ${e}"
}

currentBuild.result = 'FAILURE'
}
Loading

0 comments on commit fd0c5ac

Please sign in to comment.