87 Star 528 Fork 109

GVPJenkins中文社区/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"
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jenkins-zh/jenkins-cli.git
git@gitee.com:jenkins-zh/jenkins-cli.git
jenkins-zh
jenkins-cli
jenkins-cli
master

搜索帮助