Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

migrating docs build and publish job to secure nodes #11066

Merged
merged 1 commit into from
May 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def init_git() {

try {
stage('Build Docs') {
node('mxnetlinux-cpu') {
node('restricted-mxnetlinux-cpu') {
ws('workspace/docs') {
init_git()
timeout(time: max_time, unit: 'MINUTES') {
sh "ci/build.py -p ubuntu_cpu /work/runtime_functions.sh build_docs ${params.tags_to_build} ${params.tag_list} ${params.tag_default} ${params.domain}"
archiveArtifacts 'docs/build_version_doc/artifacts.tgz'
build 'website build - test publish'
build 'restricted-website-publish'
}
}
}
Expand All @@ -62,13 +62,13 @@ try {
// set build status to success at the end
currentBuild.result = "SUCCESS"
} catch (caughtError) {
node("mxnetlinux-cpu") {
node("restricted-mxnetlinux-cpu") {
sh "echo caught ${caughtError}"
err = caughtError
currentBuild.result = "FAILURE"
}
} finally {
node("mxnetlinux-cpu") {
node("restricted-mxnetlinux-cpu") {
// Only send email if master failed
if (currentBuild.result == "FAILURE" && env.BRANCH_NAME == "master") {
emailext body: 'Build for MXNet branch ${BRANCH_NAME} has broken. Please view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[BUILD FAILED] Branch ${BRANCH_NAME} build ${BUILD_NUMBER}', to: '${EMAIL}'
Expand Down