-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
39 lines (35 loc) · 1.39 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
35
36
37
38
39
#!groovy
pipeline {
// Configure the default agent
agent any
environment {
AGAVE_JOB_TIMEOUT = 900
AGAVE_JOB_GET_DIR = "job_output"
AGAVE_DATA_URI = "agave://data-sd2e-community/"
AGAVE_CACHE_DIR = "${HOME}/credentials_cache/${JOB_BASE_NAME}"
AGAVE_JSON_PARSER = "jq"
AGAVE_TENANTID = "sd2e"
AGAVE_APISERVER = "https://api.sd2e.org"
AGAVE_USERNAME = "sd2etest"
AGAVE_PASSWORD = credentials('sd2etest-tacc-password')
REGISTRY_USERNAME = "sd2etest"
REGISTRY_PASSWORD = credentials('sd2etest-dockerhub-password')
REGISTRY_ORG = credentials('sd2etest-dockerhub-org')
GITLAB_API_AUTH_TOKEN = credentials('nick-test-gitlab-api-key')
PATH = "${HOME}/bin:${HOME}/sd2e-cloud-cli/bin:${env.PATH}"
}
stages {
stage('Run perovskite test harness') {
when {
environment name:'gitlabActionType', value:'PUSH'
}
steps {
sh 'echo $GITLAB_API_AUTH_TOKEN'
sh 'echo "running perovskite test harnesst"'
sh 'pip install -r requirements-app.txt --user'
sh "python ${WORKSPACE}/scripts_for_automation/perovskite_test_harness.py --gitlab_auth $GITLAB_API_AUTH_TOKEN"
sh 'echo "finished running test harness script"'
}
}
}
}