-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
40 lines (34 loc) · 983 Bytes
/
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
pipeline {
agent {
label 'mikero'
}
stages {
stage('Install') {
steps {
bat 'npm install'
}
}
stage('Build') {
steps {
bat 'npm run build'
bat 'hemtt build --release'
}
}
stage('Archive Build') {
steps {
archiveArtifacts artifacts: 'releases/0.0.0/@anrop_jolly_green/**/*'
}
}
stage('Publish to Steam Workshop') {
when {
branch 'master'
}
steps {
publishSteamWorkshop '1818018494', 'releases/0.0.0/@anrop_jolly_green', env.GIT_COMMIT
}
}
}
}
void publishSteamWorkshop(String id, String mod, String changeNote) {
bat "\"C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Arma 3 Tools\\Publisher\\PublisherCmd.exe\" update /changeNote:$changeNote /id:$id /path:$mod"
}