Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Set correct path for Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 7, 2018
1 parent 1085c0a commit 23e6470
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pipeline {

environment {
dockerhub_repo = "indigodatacloud/im"
dockerhub_image_id = ""
pip_test_reqs = '''bandit
pep8
nose
Expand Down Expand Up @@ -105,7 +106,7 @@ commands = bandit -r IM -f html -o bandit.html"""
ToxEnvRun('bandit')
}
catch(e) {
// FIXME: Temporarily ignore bandit exit status
// FIXME: Temporarily ignore bandit exit status
currentBuild.result = 'SUCCESS'
}
}
Expand Down Expand Up @@ -162,12 +163,15 @@ commands = bandit -r IM -f html -o bandit.html"""
steps {
checkout scm
script {
image_id = DockerBuild(dockerhub_repo, env.BRANCH_NAME)
dockerhub_image_id = DockerBuild(
dockerhub_repo,
env.BRANCH_NAME,
"docker-devel")
}
}
post {
success {
DockerPush(image_id)
DockerPush(dockerhub_image_id)
}
failure {
DockerClean()
Expand All @@ -177,5 +181,23 @@ commands = bandit -r IM -f html -o bandit.html"""
}
}
}

stage('Notifications') {
when {
buildingTag()
}
steps {
JiraIssueNotification(
'DEEP',
'DPM',
'10204',
"[preview-testbed] New InfrastructureManager version ${env.BRANCH_NAME} available",
"Check new artifacts at:\n\t- Docker image: [${dockerhub_image_id}:${env.BRANCH_NAME}|https://hub.docker.com/r/${dockerhub_image_id}/tags/]",
['wp3', 'preview-testbed', "IM-${env.BRANCH_NAME}"],
'Task',
'mariojmdavid'
)
}
}
}
}

0 comments on commit 23e6470

Please sign in to comment.