Skip to content

Commit

Permalink
Merged in fix_ci (pull request apache#18)
Browse files Browse the repository at this point in the history
Fix CI

* Fix CI

Approved-by: Spenser Gilliland
Approved-by: Lam Nguyen
  • Loading branch information
jeffuongsima committed Aug 1, 2020
1 parent 24e550f commit fe2757e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ci_jobs/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ def main() {

def image
stage("DockerBuild") {
image = utils.dockerBuild("docker/Dockerfile", 'simaai/' + job_name, "docker_creds", "docker_build.log", {})
image = utils.dockerBuild(
"docker/Dockerfile",
"${env.NEXUS_URL}:5000/" + job_name,
"jenkins_user",
"docker_build.log",
{},
"https://${env.NEXUS_URL}:5000"
)
}

parallel push: {
Expand Down Expand Up @@ -65,7 +72,7 @@ python3 setup.py bdist_wheel

stage("Promotion") {
if (env.BRANCH_NAME=="sima") {
utils.docker_promote(image['image'], 'docker_creds', '')
utils.docker_promote(image['image'], 'jenkins_user', "https://${env.NEXUS_URL}:5000")
}
}

Expand Down

0 comments on commit fe2757e

Please sign in to comment.