Score
0
Watch 34 Star 262 Fork 53

Jenkins中文社区 / jenkins-cliGoMIT

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Jenkinsfile 1.98 KB
Copy Edit Web IDE Raw Blame History
Rick authored 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"
}
}
}

Comment ( 0 )

Sign in for post a comment