build: refs #6706 hook test #1988

Merged
juan merged 17 commits from 6706-optimizeHooks into dev 2024-02-01 22:40:39 +00:00
1 changed files with 8 additions and 5 deletions
Showing only changes of commit 76785b99b1 - Show all commits

13
Jenkinsfile vendored
View File

@ -1,6 +1,10 @@
#!/usr/bin/env groovy
{
def PROTECTED_BRANCH
def FROM_GIT
def RUN_TESTS
before: {
switch (env.BRANCH_NAME) {
case 'test':
env.NODE_ENV = 'test'
@ -15,15 +19,14 @@
env.BACK_REPLICAS = 1
}
def PROTECTED_BRANCH = [
PROTECTED_BRANCH = [
'dev',
'test',
'master'
].contains(env.BRANCH_NAME)
def FROM_GIT = env.JOB_NAME.startsWith('gitea/')
def RUN_TESTS = !PROTECTED_BRANCH && FROM_GIT
FROM_GIT = env.JOB_NAME.startsWith('gitea/')
RUN_TESTS = !PROTECTED_BRANCH && FROM_GIT
// Uncomment to enable debugging
// https://loopback.io/doc/en/lb3/Setting-debug-strings.html#debug-strings-reference