Don't build wheelhouse files for PAAS

This commit is contained in:
bandesz
2017-01-11 17:00:39 +00:00
parent 0d4e55d33a
commit 536d9a975d
2 changed files with 13 additions and 5 deletions

10
Jenkinsfile vendored
View File

@@ -20,7 +20,7 @@ def deploy(cfEnv) {
} catch(err) {
echo "Deployment to ${cfEnv} failed: ${err}"
try {
//slackSend channel: '#govuk-notify', message: "Deployment to ${cfEnv} failed. Please retry or abort: <${env.BUILD_URL}|${env.JOB_NAME} - #${env.BUILD_NUMBER}>", color: 'danger'
slackSend channel: '#govuk-notify', message: "Deployment to ${cfEnv} failed. Please retry or abort: <${env.BUILD_URL}|${env.JOB_NAME} - #${env.BUILD_NUMBER}>", color: 'danger'
} catch(err2) {
echo "Sending Slack message failed: ${err2}"
}
@@ -34,11 +34,11 @@ try {
node {
stage('Build') {
git url: 'git@github.com:alphagov/notifications-admin.git', branch: 'cloudfoundry', credentialsId: 'github_com_and_gds'
//checkout scm
checkout scm
milestone 10
withEnv(["PIP_ACCEL_CACHE=${env.JENKINS_HOME}/cache/pip-accel"]) {
sh 'make build-with-docker'
sh 'make cf-build-with-docker'
}
}
@@ -131,11 +131,11 @@ try {
} catch (err) {
currentBuild.result = 'FAILURE'
echo "Pipeline failed: ${err}"
//slackSend channel: '#govuk-notify', message: "${env.JOB_NAME} - #${env.BUILD_NUMBER} failed (<${env.BUILD_URL}|Open>)", color: 'danger'
slackSend channel: '#govuk-notify', message: "${env.JOB_NAME} - #${env.BUILD_NUMBER} failed (<${env.BUILD_URL}|Open>)", color: 'danger'
} finally {
node {
try {
//step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'notify-support+jenkins@digital.cabinet-office.gov.uk', sendToIndividuals: false])
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'notify-support+jenkins@digital.cabinet-office.gov.uk', sendToIndividuals: false])
} catch(err) {
echo "Sending email failed: ${err}"
}