-
Notifications
You must be signed in to change notification settings - Fork 8
/
Jenkinsfile
38 lines (33 loc) · 1.2 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
@Library('pipeline-library@webapp-pipelines') _
webappPipeline {
slaveLabel = 'dev_v2'
nodeVersion = '10.16.2'
useArtifactoryRepo = false
projectName = 'webrtc-troubleshoot'
manifest = staticManifest(['webrtc-troubleshooter.js', 'webrtc-troubleshooter.js.map'])
buildType = { env.BRANCH_NAME == 'master' ? 'MAINLINE' : 'FEATURE' }
publishPackage = { 'prod' }
testJob = 'valve-webrtc-troubleshoot-tests'
buildStep = {
sh('npm i && npm test && npm run build')
}
cmConfig = {
return [
managerEmail: '[email protected]',
rollbackPlan: 'Patch version with fix',
testResults: 'https://jenkins.ininica.com/job/web-pipeline-webrtc-troubleshoot/job/master/'
]
}
shouldTagOnRelease = { false }
postReleaseStep = {
sshagent(credentials: [constants.credentials.github.inin_dev_evangelists]) {
sh("""
git tag v${version}
# patch to prep for the next version
npm version patch --no-git-tag-version
git commit -am "Prep next version"
git push origin HEAD:master --tags
""")
}
}
}