forked from lsst-ts/ts_Dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.base
28 lines (26 loc) · 921 Bytes
/
Jenkinsfile.base
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
pipeline {
agent any
environment {
registryCredential = "dockerhub-lssttsadmin"
dockerImageNameBuild = "lsstts/base-env:${image_tag}_b${BUILD_NUMBER}"
dockerImageBuild = ""
}
stages {
stage("Build Docker image") {
steps {
script {
dockerImageBuild = docker.build(dockerImageNameBuild, "--no-cache --build-arg PYTHON_VERSION=${env.python_version} --build-arg CONDA_VERSION=${env.conda_version} --build-arg image_tag=${env.image_tag} --build-arg UID=${env.user_id} --build-arg GID=${env.group_id} ./develop-env/base/")
}
}
}
stage("Push Docker image") {
steps {
script {
docker.withRegistry("", registryCredential) {
dockerImageBuild.push()
}
}
}
}
}
}