1 Star 0 Fork 110

lmm/jenkins-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
Rick 提交于 2019-08-29 20:54 . Add support to download Jenkins (#129)
library identifier: 'jenkins_zh@', retriever: modernSCM([$class: 'GitSCMSource', credentialsId: '', remote: 'https://github.com/LinuxSuRen/shared-library', traits: [[$class: 'jenkins.plugins.git.traits.BranchDiscoveryTrait']]])
pipeline {
agent {
label 'golang-1.12'
}
stages {
stage('Init') {
steps {
script {
entry.container_x('golang', 'go version'){
sh label: 'make init', script: 'make init'
}
}
}
}
stage('Build') {
parallel {
stage('MacOS') {
steps {
script {
entry.container_x('golang', 'go version'){
sh label: 'make darwin', script: 'make darwin'
}
}
}
}
stage('Linux') {
steps {
script {
entry.container_x('golang', 'go version'){
sh label: 'make linux', script: 'make linux'
}
}
}
}
stage('Windows') {
steps {
script {
entry.container_x('golang', 'go version'){
sh label: 'make win', script: 'make win'
}
}
}
}
}
}
stage('Test') {
steps {
script {
entry.container_x('golang', 'go version'){
sh label: 'go test', script: 'make test'
}
}
}
}
}
post {
always {
junit allowEmptyResults: true, testResults: "*/**/*.xml"
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lizhiwei6011/jenkins-cli.git
git@gitee.com:lizhiwei6011/jenkins-cli.git
lizhiwei6011
jenkins-cli
jenkins-cli
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385