-
Notifications
You must be signed in to change notification settings - Fork 438
/
Jenkinsfile
30 lines (28 loc) · 1.19 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
node {
withEnv(["ARTIFACT_DIR=${WORKSPACE}/artifacts"]) {
withCredentials([string(credentialsId: 'LIBRARY_PATH', variable: 'LIBRARY_PATH')]) {
if (params.CLEAN_WORKSPACE) {
echo "CLEAN_WORKSPACE set: deleting everything"
cleanWs()
}
dir('ouster-sdk') {
checkout([
$class : 'GitSCM',
branches : [[name: "*/${BRANCH_NAME}"]],
extensions : scm.extensions + [
[$class: 'CleanCheckout'],
[$class : 'SubmoduleOption',
disableSubmodules : false, parentCredentials: true,
recursiveSubmodules: true,
trackingSubmodules : true
]
],
userRemoteConfigs: scm.userRemoteConfigs
])
}
dir(env.ARTIFACT_DIR) { deleteDir() }
run_pipeline = load "${LIBRARY_PATH}"
run_pipeline()
}
}
}