-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
58 lines (49 loc) · 1.15 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!groovy
pipeline {
libraries {
lib('fe-pipeline-steps@1.5.0')
}
options {
buildDiscarder(logRotator(numToKeepStr: '30'))
}
triggers {
pollSCM('H/5 * * * *')
}
agent {
label 'docker'
}
environment {
// Name the build according to its commit
BUILD_VERSION = feDetermineVersionFromGit()
}
stages {
stage('Build') {
agent {
docker {
image 'franka/build/node-16:0.16.3'
reuseNode true
}
}
steps {
script {
notifyBitbucket()
}
feSetupNpm('playground')
sshagent(['git_ssh']) {
feCiNpm()
}
sh "npx vsce package ${env.BUILD_VERSION} --no-git-tag-version"
archiveArtifacts "ride-vscode-${env.BUILD_VERSION}.vsix"
}
}
}
post {
always {
fePublishBuildInfo()
script {
notifyBitbucket()
}
cleanWs()
}
}
}