forked from PSLmodels/OG-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
19 lines (17 loc) · 1.06 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
node {
withCredentials([[$class: 'StringBinding', credentialsId: 'OSPC_API_KEY', variable: 'OSPC_API_KEY']]) {
withCredentials([[$class: 'StringBinding', credentialsId: 'REMOTE_BUILD_TOKEN', variable: 'REMOTE_BUILD_TOKEN']]) {
withCredentials([[$class: 'StringBinding', credentialsId: 'ANACONDA_OSPC_TOKEN', variable: 'ANACONDA_OSPC_TOKEN']]) {
withCredentials([[$class: 'StringBinding', credentialsId: 'JENKINS_DOMAIN', variable: 'JENKINS_DOMAIN']]) {
sh '''if [ "$REMOTE_BUILD_TOKEN" = "" ];then echo WONT WORK - REMOTE_BUILD_TOKEN not there;fi '''
sh '''if [ "$OSPC_API_KEY" = "" ];then echo WONT WORK - OSPC_API_KEY not there;fi '''
sh '''''if [ "$JENKINS_DOMAIN" = "" ];then echo WONT WORK NO JENKINS_DOMAIN;fi'''
sh '''echo About to checkout scm'''
checkout scm
sh '''echo Checked out scm'''
sh '''cd regression && bash run_reforms_bash.sh'''
}
}
}
}
}