Skip to content
Snippets Groups Projects
Commit 26085760 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia Committed by Shaun Roe
Browse files

Athena pipeline: rebuild all required packages every time the pipeline is triggered

parent 857e4554
Branches
Tags
1 merge request!451Athena pipeline: rebuild all required packages every time the pipeline is triggered
Pipeline #12075515 passed
......@@ -2,7 +2,6 @@
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
*/
#include "GeoModelKernel/CellBinning.h"
#include <exception>
......
......@@ -165,14 +165,15 @@ echo "package_filters=${package_filters}"
echo "IS_MERGE_REQUEST = $IS_MERGE_REQUEST"
echo "HEADERS_CHANGED = $HEADERS_CHANGED"
if [ "$IS_MERGE_REQUEST" = "0" ] && [ "$HEADERS_CHANGED" = "1" ]; then
echo "Is MR and header files have NOT changed"
else
echo "Is NOT MR OR header files HAVE changed"
cat "$full_package_filters" > "$package_filters"
fi
#echo "HEADERS_CHANGED = $HEADERS_CHANGED"
#if [ "$IS_MERGE_REQUEST" = "0" ] && [ "$HEADERS_CHANGED" = "1" ]; then
# echo "Is MR and header files have NOT changed"
#else
# echo "Is NOT MR OR header files HAVE changed"
# cat "$full_package_filters" > "$package_filters"
#fi
cat "$full_package_filters" > "$package_filters"
cat "$patch_package_filters" >> "$package_filters"
......
......@@ -48,7 +48,7 @@ build_geomodel_athena:
- git config --global user.email cijob@example.com
- echo $CI_MERGE_REQUEST_PROJECT_ID
- echo $CI_MERGE_REQUEST_IID
- export HEADERS_CHANGED=$(curl -s https://gitlab.cern.ch/api/v4/projects/${CI_MERGE_REQUEST_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}/changes | jq -r .changes[].new_path | grep -e "\.h$" > /dev/null ; printf $?)
# - export HEADERS_CHANGED=$(curl -s https://gitlab.cern.ch/api/v4/projects/${CI_MERGE_REQUEST_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}/changes | jq -r .changes[].new_path | grep -e "\.h$" > /dev/null ; printf $?)
- export IS_MERGE_REQUEST=$([ $CI_PIPELINE_SOURCE = "merge_request_event" ]; printf $?)
- athena_ci/athena_build.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment