代码拉取完成,页面将自动刷新
pipeline {
agent { label 'ubuntu18.04-docker-8c-8g' }
options {
timestamps()
disableConcurrentBuilds()
preserveStashes()
quietPeriod(5) // wait a few seconds before starting to aggregate multiple commits into a single build
durabilityHint 'PERFORMANCE_OPTIMIZED'
}
triggers {
issueCommentTrigger('.*^recheck$.*')
}
stages {
stage('Build Docs') {
agent {
dockerfile {
filename 'Dockerfile.docs'
reuseNode true
args '-u 0:0 --privileged --entrypoint='
}
}
steps {
script {
if ((env.BRANCH_NAME).startsWith('PR-')) {
env.ENABLED_HTMLPROOFER = true
}
retry(4) {
sh 'mkdocs build'
sh 'sleep 5' // add a little delay to avoid potential rate limiting issues
}
}
// stash the site contents generated from mkdocs build
stash name: 'site-contents', includes: 'docs/**', useDefaultExcludes: false
}
}
// back onto the main centos agent (not in docker container)
stage('Publish to GitHub pages') {
when {
beforeAgent true
expression { edgex.isReleaseStream() }
}
agent {
label 'centos7-docker-4c-2g'
}
steps {
script {
}
}
}
}
post {
always {
edgeXInfraPublish()
}
cleanup {
cleanWs()
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。