From ded57af2d0f7ab4b4fae217fd2a5c61f7e44015f Mon Sep 17 00:00:00 2001 From: giordano <domenico.giordano@cern.ch> Date: Fri, 21 Jun 2019 16:55:34 +0200 Subject: [PATCH 1/2] passing correct path to the artifact --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6917462f..61ad8743 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,7 +37,7 @@ job_make_builder_image: - ./.gitlab-ci.sh build artifacts: paths: - - $JOB_DIR/results.tgz + - /scratch/logs/CI-JOB-${CI_JOB_ID}_${CI_JOB_NAME}/results.tgz expire_in: 1 week when: always #after_script: -- GitLab From 7144f88e7837f70ba3b44a52f65c7cd01b0beeb2 Mon Sep 17 00:00:00 2001 From: giordano <domenico.giordano@cern.ch> Date: Fri, 21 Jun 2019 17:12:40 +0200 Subject: [PATCH 2/2] introduce variable to make silent the new created image (no announcement) --- atlas/kv-bmk-v17.8.0.9/kv-bmk.spec | 1 + build-executor/main.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/atlas/kv-bmk-v17.8.0.9/kv-bmk.spec b/atlas/kv-bmk-v17.8.0.9/kv-bmk.spec index 09457558..79bbb2a2 100644 --- a/atlas/kv-bmk-v17.8.0.9/kv-bmk.spec +++ b/atlas/kv-bmk-v17.8.0.9/kv-bmk.spec @@ -2,6 +2,7 @@ bmkexe=./kv-bmk/kv-bmk.sh bmkopts="-n 1" bmkdir=./kv-bmk bmkdescription="ATLAS KV: GEANT4 simulation of 100 single muon events, based on Athena version v17.8.0.9" +bmkannounce=false DOCKER_IMAGE=kv-bmk DOCKER_IMAGE_TAG=v1.0 CVMFS_REPOSITORIES=atlas.cern.ch diff --git a/build-executor/main.sh b/build-executor/main.sh index bb6487c5..6ef656ba 100755 --- a/build-executor/main.sh +++ b/build-executor/main.sh @@ -267,7 +267,7 @@ function publish_standalone_image(){ IMAGE_LATEST=${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest docker tag "${IMAGE}" "${IMAGE_LATEST}" || fail "[publish_standalone_image] docker tag ${IMAGE} ${IMAGE_LATEST}" docker push "${IMAGE_LATEST}" || fail "[publish_standalone_image] docker push ${IMAGE_LATEST}" - announce "${IMAGE}" "${IMAGE_LATEST}" + [[ ( -z $bmkannounce ) || ( "${bmkannounce,,}" != "false" ) ]] && announce "${IMAGE}" "${IMAGE_LATEST}" fi echo "[publish_standalone_image] finished at $(date)" return 0 -- GitLab