# Necessary variables to be passed to Dockerfile for building a standalone image is CMSSW_VERSION=$RELEASE,
# SCRAM_ARCH=$SCRAM_ARCH and BASEIMAGE="gitlab-registry.cern.ch/cms-cloud/cmssw-docker/$OS-cms:latest"
# On success of standalone build remove labels and close corresponding Gitlab issue
# If email provided send an email notification
standalone_build_success:
stage:clean_up
only:
variables:
-$RELEASE && $SCRAM_ARCH && $OS && $ISSUE_IID
refs:
-master
when:on_success
script:
-"curl-XPUT-HPRIVATE-TOKEN:${GITLAB_TOKEN}https://gitlab.cern.ch/api/v4/projects/${BACKEND_IID}/issues/${ISSUE_IID}?state_event=close&labels="# close and remove labels
-"curl-XPOST-HPRIVATE-TOKEN:${GITLAB_TOKEN}https://gitlab.cern.ch/api/v4/projects/${BACKEND_IID}/issues/${ISSUE_IID}/notes?body=The%20pipeline%20of%20this%20request%20just%20failed"# comment on issue
\ No newline at end of file
# SCRAM_ARCH=$SCRAM_ARCH and BASEIMAGE="gitlab-registry.cern.ch/cms-cloud/cmssw-docker/$OS-cms:latest"