Skip to content

Commit

Permalink
ci: grab correct incremental artifacts (#54)
Browse files Browse the repository at this point in the history
* ci: grab correct incremental artifacts

* ci: grab correct incremental artifacts

* ci: grab correct incremental artifacts
  • Loading branch information
kuisathaverat authored Oct 4, 2020
1 parent ed4ecdb commit 92078f2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,22 @@ pipeline {
}
post {
always {
/*
archiveArtifacts(allowEmptyArchive: true,
artifacts: "**/target/trilead*.jar",
artifacts: "** /target/trilead*.jar",
onlyIfSuccessful: false)
*/
junit(allowEmptyResults: true,
keepLongStdio: true,
testResults: "**/target/surefire-reports/**/*.xml")
script {
def m2repo = "${pwd tmp: true}/m2repo"
// No easy way to load both of these in one command: https://stackoverflow.com/q/23521889/12916
String version = sh script: 'mvn -Dset.changelist -Dexpression=project.version -q -DforceStdout help:evaluate', returnStdout: true
echo "Collecting $version from $m2repo for possible Incrementals publishing"
dir(m2repo) {
archiveArtifacts "org/jenkins-ci/trilead-ssh2/$version/*$version*"
}
infra.maybePublishIncrementals()
}
}
Expand Down

0 comments on commit 92078f2

Please sign in to comment.