1 Star 0 Fork 0

zhang1998/django-job-portal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 864 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rumi 提交于 2020-02-29 13:12 +08:00 . Jenkinsfile added
#!groovy
node {
try {
stage 'Checkout'
checkout scm
sh 'git log HEAD^..HEAD --pretty="%h %an - %s" > GIT_CHANGES'
def lastChanges = readFile('GIT_CHANGES')
//slackSend color: "warning", message: "Started `${env.JOB_NAME}#${env.BUILD_NUMBER}`\n\n_The changes:_\n${lastChanges}"
stage 'Deploy'
sh './deployment/deploy_prod.sh'
stage 'Publish results'
echo "Deployment successful"
//slackSend color: "good", message: "Build successful: `${env.JOB_NAME}#${env.BUILD_NUMBER}` <${env.BUILD_URL}|Open in Jenkins>"
}
catch (err) {
echo "Error found"
//slackSend color: "danger", message: "Build failed :face_with_head_bandage: \n`${env.JOB_NAME}#${env.BUILD_NUMBER}` <${env.BUILD_URL}|Open in Jenkins>"
throw err
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang16112/django-job-portal.git
git@gitee.com:zhang16112/django-job-portal.git
zhang16112
django-job-portal
django-job-portal
master

搜索帮助