Commit 1544a461 authored by Johannes Visintini's avatar Johannes Visintini
Browse files

Merge branch 'check-dependencies-main-branch' into 'master'

check dependencies only in main branch (e.g. main, master, …)

See merge request !31
parents e2ddffd3 31f0e153
Pipeline #1891 created
......@@ -117,7 +117,7 @@ pipeline {
stage ('Check Dependencies') {
when {
expression {
if (currentBuild.number > 1) {
if ((currentBuild.number > 1) && (env.BRANCH_NAME ==~ SNAPSHOT_BRANCH_REGEX)) {
month_pre = new Date(currentBuild.previousBuild.rawBuild.getStartTimeInMillis())[Calendar.MONTH]
echo month_pre.toString()
month_now = new Date(currentBuild.rawBuild.getStartTimeInMillis())[Calendar.MONTH]
......
......@@ -221,7 +221,7 @@ pipeline {
stage ('Encourage') {
when {
expression {
if (currentBuild.number > 1) {
if ((currentBuild.number > 1) && (env.BRANCH_NAME ==~ SNAPSHOT_BRANCH_REGEX)) {
date_pre = new Date(currentBuild.previousBuild.rawBuild.getStartTimeInMillis()).clearTime()
echo date_pre.format( 'yyyyMMdd' )
date_now = new Date(currentBuild.rawBuild.getStartTimeInMillis()).clearTime()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment