-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
45 lines (44 loc) · 1 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
45
pipeline {
agent any
environment {
registryCredential = "dockerhub-inriachile"
// SAL setup file
SAL_SETUP_FILE = "/home/saluser/.setup_dev.sh"
// LTD credentials
user_ci = credentials('lsst-io')
LTD_USERNAME="${user_ci_USR}"
LTD_PASSWORD="${user_ci_PSW}"
}
stages {
stage("Deploy documentation") {
agent {
docker {
alwaysPull true
image 'lsstts/develop-env:develop'
args "--entrypoint=''"
}
}
when {
anyOf {
branch "main"
branch "develop"
}
}
steps {
script {
sh """
source ${env.SAL_SETUP_FILE}
# Create docs
cd ./docsrc
pip install -r requirements.txt
sh ./create_docs.sh
cd ..
# Upload docs
pip install ltd-conveyor
ltd upload --product love-integration-tools --git-ref ${GIT_BRANCH} --dir ./docs
"""
}
}
}
}
}