From 5175c1655ce97d28b9719e9cc193eeb754a39476 Mon Sep 17 00:00:00 2001 From: Guilhem Bonnefille <guilhem.bonnefille@csgroup.eu> Date: Thu, 27 Jun 2024 12:54:43 +0000 Subject: [PATCH] fix: when enabled, build should be always run If not explictly disabled, the Node build should be always run. Should not apply the test policy rules (Adaptive Pipeline). BREAKING CHANGE: restoring the expected behavior might break some projects pipeline --- templates/gitlab-ci-node.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/gitlab-ci-node.yml b/templates/gitlab-ci-node.yml index 4058dcd..a21ae37 100644 --- a/templates/gitlab-ci-node.yml +++ b/templates/gitlab-ci-node.yml @@ -679,8 +679,8 @@ node-build: expire_in: 1 day rules: # always if $NODE_BUILD_DISABLED not set - - if: '$NODE_BUILD_DISABLED == "true"' - when: never + - if: '$NODE_BUILD_DISABLED != "true"' + # else (test only): apply test-policy - !reference [.test-policy, rules] node-lint: -- GitLab