加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright 2020 Joyent, Inc.
*/
@Library('jenkins-joylib@v1.0.6') _
pipeline {
agent {
label joyCommonLabels(image_ver: '15.4.1')
}
options {
buildDiscarder(logRotator(numToKeepStr: '30'))
timestamps()
}
parameters {
string(
name: 'AGENT_PREBUILT_AGENT_BRANCH',
defaultValue: '',
description: 'The branch to use for the agents ' +
'that are included in this component.<br/>' +
'With an empty value, the build will look for ' +
'agents from the same branch name as the ' +
'component, before falling back to "master".'
)
}
stages {
stage('check') {
steps{
sh('make check')
}
}
// avoid bundling devDependencies
stage('re-clean') {
steps {
sh('git clean -fdx')
}
}
stage('build image and upload') {
steps {
joyBuildImageAndUpload()
}
}
}
post {
always {
joyMattermostNotification()
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化