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
oshdb-examples
Commits
3c675ff2
Commit
3c675ff2
authored
Mar 21, 2019
by
Moritz Schott
Browse files
Update Jenkinsfile to run statistics only if necessary
parent
33fea542
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
3c675ff2
...
...
@@ -39,6 +39,16 @@ pipeline {
}
stage
(
'Reports and Statistics'
)
{
//create reports only if triggerd by new code
when
{
expression
{
if
(
currentBuild
.
rawBuild
.
getCauses
().
any
{
it
==~
/^jenkins\.branch\.BranchIndexingCause.*/
}){
return
true
}
return
false
}
}
steps
{
script
{
projver
=
sh
(
returnStdout:
true
,
script:
'mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev "(^\\[|Download\\w+)"'
).
trim
()
...
...
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