summaryrefslogtreecommitdiffstats
path: root/.gitlab
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-12 18:01:45 (GMT)
committerBrad King <brad.king@kitware.com>2021-03-17 15:41:25 (GMT)
commit256c320fb6aea90f6544bcefe8dbde497b40351f (patch)
tree0c3c95e3db6116cfe040907bba9cc196b1caf6ef /.gitlab
parent773df911c12958b29ad761100e1873c611819cc9 (diff)
downloadCMake-256c320fb6aea90f6544bcefe8dbde497b40351f.zip
CMake-256c320fb6aea90f6544bcefe8dbde497b40351f.tar.gz
CMake-256c320fb6aea90f6544bcefe8dbde497b40351f.tar.bz2
gitlab-ci: add variable for job to control its ctest build name
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/gitlab_ci.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab/ci/gitlab_ci.cmake b/.gitlab/ci/gitlab_ci.cmake
index f863a27..f166215 100644
--- a/.gitlab/ci/gitlab_ci.cmake
+++ b/.gitlab/ci/gitlab_ci.cmake
@@ -17,7 +17,11 @@ if ("$ENV{CMAKE_CONFIGURATION}" STREQUAL "")
endif ()
# Set the build metadata.
-set(CTEST_BUILD_NAME "$ENV{CI_PROJECT_NAME}-$ENV{CMAKE_CONFIGURATION}")
+if(NOT "$ENV{CMAKE_CI_BUILD_NAME}" STREQUAL "")
+ set(CTEST_BUILD_NAME "$ENV{CI_PROJECT_NAME}-$ENV{CMAKE_CI_BUILD_NAME}")
+else()
+ set(CTEST_BUILD_NAME "$ENV{CI_PROJECT_NAME}-$ENV{CMAKE_CONFIGURATION}")
+endif()
set(CTEST_SITE "gitlab-ci")
set(ctest_model "Experimental")