代码拉取完成,页面将自动刷新
/*
* 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()
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。