build: refs #6706 Jenkinsfile test
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2024-02-01 22:06:30 +01:00
parent 2180045848
commit 76785b99b1
1 changed files with 8 additions and 5 deletions

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