1 Star 1 Fork 0

AtomHub/oi-janky-groovy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
bashbrew-pipeline.groovy 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
properties([
buildDiscarder(logRotator(daysToKeepStr: '14')),
disableConcurrentBuilds(),
pipelineTriggers([
cron('H H * * *'),
]),
])
node {
stage('Checkout') {
checkout(
poll: true,
scm: [
$class: 'GitSCM',
userRemoteConfigs: [[
url: 'https://github.com/docker-library/official-images.git',
]],
branches: [[name: '*/master']],
extensions: [
[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'oi',
],
[
$class: 'CleanCheckout',
],
[
$class: 'PathRestriction',
excludedRegions: '',
includedRegions: 'bashbrew/go',
],
],
doGenerateSubmoduleConfigurations: false,
submoduleCfg: [],
],
)
}
ansiColor('xterm') {
stage('Build') {
sh '''
docker build -t bashbrew --pull -f oi/bashbrew/Dockerfile.release oi/bashbrew
rm -rf bin
docker run -i --rm bashbrew tar -c bin \\
| tar -xv
'''
}
}
stage('Archive') {
archiveArtifacts(
artifacts: 'bin/*',
fingerprint: true,
onlyIfSuccessful: true,
)
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/atomhub/oi-janky-groovy.git
git@gitee.com:atomhub/oi-janky-groovy.git
atomhub
oi-janky-groovy
oi-janky-groovy
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385