-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
44 lines (39 loc) · 1.15 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
40
41
42
43
44
#!/usr/bin/env groovy
pipeline {
agent {
// Use the docker to assign the Python version.
// Use the label to assign the node to run the test.
// It is recommended by SQUARE to not add the label
docker {
alwaysPull true
image 'lsstts/develop-env:develop'
args "--entrypoint=''"
}
}
environment {
user_ci = credentials('lsst-io')
LTD_USERNAME="${user_ci_USR}"
LTD_PASSWORD="${user_ci_PSW}"
}
stages {
stage('Build and Upload Documentation') {
steps {
withEnv(["HOME=${env.WORKSPACE}"]) {
sh """
source /home/saluser/.setup_dev.sh || echo loading env failed. Continuing...
pip install .
pip install -r doc/requirements.txt
package-docs build
ltd upload --product ts-dsm --git-ref ${GIT_BRANCH} --dir doc/_build/html
"""
}
}
}
}
post {
cleanup {
// clean up the workspace
deleteDir()
}
}
}