forked from Cray-HPE/cray-psp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.github
37 lines (32 loc) · 886 Bytes
/
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
@Library('csm-shared-library') _
pipeline {
agent {
label "metal-gcp-builder"
}
options {
buildDiscarder(logRotator(numToKeepStr: "10"))
timestamps()
}
environment {
NAME = "cray-psp"
DESCRIPTION = "Deploys resources to set up PSP in the Cray Kubernetes cluster."
IS_STABLE = getBuildIsStable()
}
stages {
stage("Build") {
environment {
CHART_VERSION = getChartVersion(name: "cray-psp", chartDirectory: "charts", isStable: env.IS_STABLE)
}
steps {
sh "make"
}
}
stage('Publish ') {
steps {
script {
publishCsmHelmCharts(component: env.NAME, chartsPath: "${WORKSPACE}/packages", isStable: env.IS_STABLE)
}
}
}
}
}