forked from fabric8-services/fabric8-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
44 lines (40 loc) · 1.28 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/groovy
@Library('github.com/fabric8io/fabric8-pipeline-library@master')
def utils = new io.fabric8.Utils()
def initServiceGitHash
def releaseVersion
goTemplate{
dockerNode{
ws {
checkout scm
if (utils.isCI()){
def v = goCI{
githubOrganisation = 'fabric8-services'
dockerOrganisation = 'fabric8'
project = 'fabric8-auth'
dockerBuildOptions = '--file Dockerfile.deploy'
makeTarget = 'build check-go-format'
}
} else if (utils.isCD()){
def v = goRelease{
githubOrganisation = 'fabric8-services'
dockerOrganisation = 'fabric8'
project = 'fabric8-auth'
dockerBuildOptions = '--file Dockerfile.deploy'
makeTarget = 'build check-go-format'
}
initServiceGitHash = sh(script: 'git rev-parse HEAD', returnStdout: true).toString().trim()
pushPomPropertyChangePR{
propertyName = 'auth.version'
projects = [
'fabric8io/fabric8-platform'
]
version = v
containerName = 'go'
autoMerge = true
}
}
junit allowEmptyResults: true, testResults: '/home/jenkins/go/src/github.com/fabric8-services/fabric8-auth/tmp/junit.xml'
}
}
}