mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
Don't build wheelhouse files for PAAS
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -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}"
|
||||
}
|
||||
|
||||
8
Makefile
8
Makefile
@@ -85,6 +85,10 @@ build: dependencies generate-version-file ## Build project
|
||||
npm run build
|
||||
. venv/bin/activate && PIP_ACCEL_CACHE=${PIP_ACCEL_CACHE} pip-accel wheel --wheel-dir=wheelhouse -r requirements.txt
|
||||
|
||||
.PHONY: cf-build
|
||||
cf-build: dependencies generate-version-file ## Build project
|
||||
npm run build
|
||||
|
||||
.PHONY: build-codedeploy-artifact
|
||||
build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy
|
||||
mkdir -p target
|
||||
@@ -163,6 +167,10 @@ endef
|
||||
build-with-docker: prepare-docker-build-image ## Build inside a Docker container
|
||||
$(call run_docker_container,build,gosu hostuser make build)
|
||||
|
||||
.PHONY: cf-build-with-docker
|
||||
cf-build-with-docker: prepare-docker-build-image ## Build inside a Docker container
|
||||
$(call run_docker_container,build,gosu hostuser make cf-build)
|
||||
|
||||
.PHONY: test-with-docker
|
||||
test-with-docker: prepare-docker-build-image ## Run tests inside a Docker container
|
||||
$(call run_docker_container,test,gosu hostuser make test)
|
||||
|
||||
Reference in New Issue
Block a user