-
Notifications
You must be signed in to change notification settings - Fork 7
/
CI
29 lines (24 loc) · 980 Bytes
/
CI
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
/* Before using this example, check if the below release tag(v0.3.0) is the latest.
* You can find the latest release tag at https://git.soma.salesforce.com/dci/sfci-pipeline-sharedlib/releases
*/
@Library('sfci-pipeline-sharedlib@master') _
/* Specify the build image you want to use.
* Not specifying a build image will use the default build image specified here:
* https://git.soma.salesforce.com/dci/sfci-pipeline-sharedlib/blob/master/vars/executePipeline.groovy#L4
* (If you are fine with the default image, ignore this line)
*/
def envDef = [ buildImage: 'ops0-artifactrepo1-0-prd.data.sfdc.net/dx-runtime/centos-sfci-cc-runtime' ]
// define any release branches here
env.RELEASE_BRANCHES = ['master']
// The following statement is optional
env.SHARE_LIB_VERSION = 'v1'
executePipeline(envDef) {
stage('Init') {
buildInit()
}
stage('Test') {
sh "node --version"
sh "npm --version"
sh "npm install && npm test"
}
}