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
helpers
oshdb database driver
Commits
969b39c6
Verified
Commit
969b39c6
authored
Jul 14, 2021
by
Johannes Visintini
Browse files
Jenkins: remove infer
parent
96710067
Pipeline
#2481
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
969b39c6
...
...
@@ -11,7 +11,6 @@ pipeline {
LATEST_COMMIT_ID
=
sh
(
returnStdout:
true
,
script:
'git describe --tags --long --always'
).
trim
()
MAVEN_TEST_OPTIONS
=
' '
INFER_BRANCH_REGEX
=
/(^master$)/
SNAPSHOT_BRANCH_REGEX
=
/(^master$)/
RELEASE_REGEX
=
/^([0-9]+(\.[0-9]+)*)(-(RC|beta-|alpha-)[0-9]+)?$/
RELEASE_DEPLOY
=
false
...
...
@@ -77,14 +76,6 @@ pipeline {
)
sh
"mkdir -p ${report_dir} && rm -Rf ${report_dir}* && find . -path '*/target/site/jacoco' -exec cp -R --parents {} ${report_dir} \\; && find ${report_dir} -path '*/target/site/jacoco' | while read line; do echo \$line; neu=\${line/target\\/site\\/jacoco/} ; mv \$line/* \$neu ; done && find ${report_dir} -type d -empty -delete"
// infer
if
(
env
.
BRANCH_NAME
==~
INFER_BRANCH_REGEX
)
{
report_dir
=
report_basedir
+
"/infer/"
sh
"mvn --batch-mode clean"
sh
"infer run --pmd-xml -r -- mvn --batch-mode compile"
sh
"mkdir -p ${report_dir} && rm -Rf ${report_dir}* && cp -R ./infer-out/* ${report_dir}"
}
// warnings plugin
rtMaven
.
run
pom:
'pom.xml'
,
goals:
'--batch-mode -V -e compile checkstyle:checkstyle pmd:pmd pmd:cpd spotbugs:spotbugs -Dmaven.repo.local=.m2 $MAVEN_TEST_OPTIONS'
...
...
@@ -93,7 +84,6 @@ pipeline {
recordIssues
enabledForFailure:
true
,
tool:
spotBugs
()
recordIssues
enabledForFailure:
true
,
tool:
cpd
(
pattern:
'**/target/cpd.xml'
)
recordIssues
enabledForFailure:
true
,
tool:
pmdParser
(
pattern:
'**/target/pmd.xml'
)
recordIssues
enabledForFailure:
true
,
tool:
pmdParser
(
pattern:
'**/infer-out/report.xml'
,
id:
'infer'
)
}
}
post
{
...
...
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