-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
37 lines (31 loc) · 1.03 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
@Library('pipeline-library@webapp-pipelines') _
webappPipeline {
slaveLabel = 'dev_v2'
nodeVersion = '10.16.2'
useArtifactoryRepo = false
projectName = 'streaming-client-webrtc-sessions'
manifest = directoryManifest('dist')
buildType = { env.BRANCH_NAME == 'master' ? 'MAINLINE' : 'FEATURE' }
publishPackage = { 'dev' }
shouldDeployDev = { true }
shouldDeployTest = { false }
shouldTestProd = { false }
buildStep = {
sh('npm install && npm test && npm run build')
}
upsertCMStep = {
sh('echo "no CM needed for internal module"')
}
shouldTagOnRelease = { false }
postReleaseStep = {
sshagent(credentials: [constants.credentials.github.inin_dev_evangelists]) {
sh("""
# patch to prep for the next version
git tag v${version}
npm version patch --no-git-tag-version
git commit -am "Prep next version"
git push origin HEAD:master --tags
""")
}
}
}