From 23e6470c73c8f2ca37df924fc00c979ab4d6eeca Mon Sep 17 00:00:00 2001 From: micafer Date: Wed, 7 Nov 2018 13:10:03 +0100 Subject: [PATCH] Set correct path for Dockerfile --- Jenkinsfile | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7e9e0cb0d..054464247 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,7 @@ pipeline { environment { dockerhub_repo = "indigodatacloud/im" + dockerhub_image_id = "" pip_test_reqs = '''bandit pep8 nose @@ -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' } } @@ -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() @@ -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' + ) + } + } } }