Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
big-data
ohsome
parent
Commits
31f0e153
Verified
Commit
31f0e153
authored
May 04, 2021
by
Johannes Visintini
Browse files
check dependencies only in main branch (e.g. main, master, …)
parent
e2ddffd3
Pipeline
#1890
passed with stage
in 0 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
31f0e153
...
...
@@ -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
]
...
...
Jenkinsfile.template
View file @
31f0e153
...
...
@@ -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()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment