diff --git a/ci/Jenkinsfile.prs b/ci/Jenkinsfile.prs index fccb94d24..958665a69 100644 --- a/ci/Jenkinsfile.prs +++ b/ci/Jenkinsfile.prs @@ -1,3 +1,5 @@ +#!/usr/bin/env groovy + library 'status-jenkins-lib@v1.6.0' pipeline { diff --git a/ci/Jenkinsfile.release b/ci/Jenkinsfile.release index 5301477da..483afceae 100644 --- a/ci/Jenkinsfile.release +++ b/ci/Jenkinsfile.release @@ -42,9 +42,10 @@ pipeline { '-d:postgres', ].join(' ') ) - string( - name: "LOG_LEVEL", - description: "Chronicles log level (default: TRACE)", + choice( + name: "LOWEST_LOG_LEVEL_ALLOWED", + choces: ['TRACE', 'DEGUG', 'INFO', 'NOTICE', 'WARN', 'ERROR', 'FATAL'], + description: "Defines the log level, which will be available at runtime (Chronicles log level)", ) booleanParam( name: 'DEBUG', @@ -61,7 +62,7 @@ pipeline { "--label=commit='${env.GIT_COMMIT.take(8)}' " + "--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " + "--build-arg=NIMFLAGS='${params.NIMFLAGS}' " + - (params.LOG_LEVEL != null ? "--build-arg=LOG_LEVEL='${params.LOG_LEVEL}' ": "") + + "--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " + "--target=${params.DEBUG ? "debug" : "prod"} ." ) } }