forked from microsoft/ftl-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
30 lines (27 loc) · 912 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
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactNumToKeepStr: '2', numToKeepStr: '2']]])
node("master") {
def projectName = "ftl-sdk"
def projectDir = pwd()+ "/${projectName}"
def artifactDir = "${projectDir}/build"
try {
sh "mkdir -p '${projectDir}'"
dir (projectDir) {
stage("Checkout") {
checkout scm
}
stage("submodules") {
sh 'git submodule update --init'
}
stage("make all") {
sh "mkdir -p build && cd build && cmake .. && make"
}
stage("deploy") {
archiveArtifacts artifacts: "build/ftl_app,build/libftl.so*", fingerprint: false
}
currentBuild.result = "SUCCESS"
}
} catch(e) {
currentBuild.result = "FAILURE"
throw e
}
}