代码拉取完成,页面将自动刷新
pipeline {
options {
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '5', artifactDaysToKeepStr: '45'))
withAWS(credentials: 'JenkinsUserAtAWS')
}
agent {
node {
label 'dockerBuilder'
}
}
environment {
GITHUB_AUTH = credentials('github-auth')
ART_AUTH = credentials('artifactory-auth')
}
stages {
stage('staging-cd') {
when {
branch 'staging'
}
steps {
echo 'Building and Deploying Jekyll `_site/` to Staging.'
script {
sh 'export JEKYLL_VERSION=3.8 && \
docker run \
--volume="$PWD:/srv/jekyll" \
jekyll/jekyll:$JEKYLL_VERSION \
jekyll build'
s3Upload(file:'_site', bucket:'staging.liquibase.org', path:'')
}
slackSend channel: '#liquibase_pro_website',
color: 'good',
message: "Liquibase Staging Site Updated: http://staging.liquibase.org"
}
}
}
post {
success {
slackSend channel: '#jenkinsbuilds',
color: 'good',
message: "SUCCESSFUL: Job '${JOB_NAME} [${BUILD_NUMBER}]' (${env.BUILD_URL})"
}
unsuccessful {
slackSend channel: '#jenkinsbuilds',
color: 'bad',
message: "FAILED: Job '${JOB_NAME} [${BUILD_NUMBER}]' (${env.BUILD_URL})"
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。