forked from Cray-HPE/nexus-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.github
44 lines (39 loc) · 1.03 KB
/
Jenkinsfile.github
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
@Library('csm-shared-library') _
pipeline {
agent {
label "metal-gcp-builder"
}
options {
buildDiscarder(logRotator(numToKeepStr: "10"))
timestamps()
}
environment {
NAME = "nexus-setup"
DESCRIPTION = "Utilities to setup and configure Nexus."
IS_STABLE = getBuildIsStable()
IMAGE_NAME = "cray-nexus-setup"
VERSION = getDockerBuildVersion(isStable: env.IS_STABLE)
DOCKER_ARGS = getDockerBuildArgs(name: env.IMAGE_NAME, description: env.DESCRIPTION)
}
stages {
stage("Build") {
steps {
sh "make image"
}
}
stage("Publish") {
steps {
script {
postChownFiles()
publishCsmDockerImage(image: env.IMAGE_NAME, tag: env.VERSION, isStable: env.IS_STABLE)
}
}
}
}
post {
always {
// Own files so jenkins can clean them up later
postChownFiles()
}
}
}