-
Notifications
You must be signed in to change notification settings - Fork 8
/
Jenkinsfile
34 lines (32 loc) · 1.16 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
pipeline {
agent {
docker { image 'mhndev/docker-lua:latest'}
}
stages {
stage('Cleanup') {
steps {
echo 'Clearing workspace'
script {
deleteDir()
}
}
}
stage('Pull Source') {
steps {
echo 'Checking out source code'
script {
checkout scm
}
}
}
stage('Build') {
steps {
sh 'cd $WORKSPACE'
sh 'lua $WORKSPACE/dependencies/dubuild/compiler.lua ./config/Compiler_Config.json -f "STEC.json" ./dependencies/dubuild/template.json ./output'
sh 'lua $WORKSPACE/dependencies/dubuild/compiler.lua ./config/Compiler_Config.min.json -f "STEC.min.json" ./dependencies/dubuild/template.json ./output'
sh 'lua $WORKSPACE/dependencies/dubuild/compiler.lua ./config/Compiler_Config.crypt.json -f "%s.STEC.crypt.json" ./dependencies/dubuild/template.json ./output'
archiveArtifacts artifacts: './output/*.json', onlyIfSuccessful: true
}
}
}
}