Skip to content

Commit

Permalink
Adopt latest changes to build pipelines
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Hudalla <[email protected]>
  • Loading branch information
sophokles73 committed May 26, 2020
1 parent e997923 commit e02d668
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 28 deletions.
3 changes: 1 addition & 2 deletions jenkins/Hono-CI-Pipeline.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy

/*******************************************************************************
* Copyright (c) 2016, 2018 Contributors to the Eclipse Foundation
* Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand All @@ -27,7 +27,6 @@ node {
utils.checkOutHonoRepoMaster()
utils.build()
utils.aggregateJunitResults()
utils.captureCodeCoverageReport()
currentBuild.result = 'SUCCESS'
} catch (err) {
currentBuild.result = 'FAILURE'
Expand Down
4 changes: 2 additions & 2 deletions jenkins/Hono-Deploy-Eclipse-Pipeline.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy

/*******************************************************************************
* Copyright (c) 2016, 2019 Contributors to the Eclipse Foundation
* Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down Expand Up @@ -56,7 +56,7 @@ def buildAndDeploy(def utils) {
withMaven(maven: utils.getMavenVersion(),
jdk: utils.getJDKVersion(),
mavenLocalRepo: '.repository',
options: [jacocoPublisher(disabled: true), artifactsPublisher(disabled: true)]) {
options: [artifactsPublisher(disabled: true)]) {
sh "mvn --projects :hono-service-auth,:hono-service-device-registry,:hono-service-device-connection,:hono-adapter-http-vertx,:hono-adapter-mqtt-vertx,:hono-adapter-kura,:hono-adapter-amqp-vertx,:hono-adapter-lora-vertx,:hono-adapter-sigfox-vertx,:hono-example,:hono-cli -am deploy -DskipTests=true -DcreateJavadoc=true -DenableEclipseJarSigner=true -DskipStaging=true"
}
}
Expand Down
4 changes: 2 additions & 2 deletions jenkins/Hono-Deploy-Maven-Central-Pipeline.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy

/*******************************************************************************
* Copyright (c) 2016, 2018 Contributors to the Eclipse Foundation
* Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down Expand Up @@ -61,7 +61,7 @@ def buildAndDeploy(def utils) {
jdk: utils.getJDKVersion(),
mavenLocalRepo: '.repository',
mavenSettingsFilePath: "${params.MAVEN_SETTINGS_FILE}",
options: [jacocoPublisher(disabled: true), artifactsPublisher(disabled: true)]) {
options: [artifactsPublisher(disabled: true)]) {
sh "mvn deploy -X -pl :hono-service-auth,:hono-service-device-registry,:hono-service-device-connection,:hono-adapter-http-vertx,:hono-adapter-mqtt-vertx,:hono-adapter-kura,:hono-adapter-amqp-vertx,:hono-adapter-lora-vertx,:hono-adapter-sigfox-vertx,:hono-example,:hono-cli -am -DskipTests=true -DcreateGPGSignature=true -DcreateJavadoc=true -DenableEclipseJarSigner=true"
}
}
Expand Down
7 changes: 3 additions & 4 deletions jenkins/Hono-Nightly-Pipeline.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy

/*******************************************************************************
* Copyright (c) 2016, 2018 Contributors to the Eclipse Foundation
* Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand All @@ -27,7 +27,6 @@ node {
utils.checkOutHonoRepoMaster()
nightlyBuild(utils)
utils.aggregateJunitResults()
utils.captureCodeCoverageReport()
utils.publishJavaDoc()
utils.archiveArtifacts("deploy/target/eclipse-hono-deploy-*.tar.gz,cli/target/hono-cli-*-exec.jar")
currentBuild.result = 'SUCCESS'
Expand All @@ -48,9 +47,9 @@ node {
*/
def nightlyBuild(def utils) {
stage('Build') {
withMaven(maven: utils.getMavenVersion(), jdk: utils.getJDKVersion(), options: [jacocoPublisher(disabled: true), artifactsPublisher(disabled: true)]) {
withMaven(maven: utils.getMavenVersion(), jdk: utils.getJDKVersion(), options: [artifactsPublisher(disabled: true)]) {
sh 'mvn clean package javadoc:aggregate'
sh 'mvn --projects :hono-service-auth,:hono-service-device-registry,:hono-adapter-http-vertx,:hono-adapter-mqtt-vertx,:hono-adapter-kura,:hono-adapter-amqp-vertx,:hono-adapter-lora-vertx,:hono-adapter-sigfox-vertx,:hono-adapter-coap-vertx,:hono-example,:hono-cli -am deploy -DcreateJavadoc=true -DenableEclipseJarSigner=true'
sh 'mvn --projects :hono-service-auth,:hono-service-device-registry,:hono-service-device-connection,:hono-adapter-http-vertx,:hono-adapter-mqtt-vertx,:hono-adapter-kura,:hono-adapter-amqp-vertx,:hono-adapter-lora-vertx,:hono-adapter-sigfox-vertx,:hono-adapter-coap-vertx,:hono-example,:hono-cli -am deploy -DcreateJavadoc=true -DenableEclipseJarSigner=true'
}
}
}
16 changes: 1 addition & 15 deletions jenkins/Hono-PipelineUtils.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy

/*******************************************************************************
* Copyright (c) 2016, 2018 Contributors to the Eclipse Foundation
* Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down Expand Up @@ -117,20 +117,6 @@ void notifyBuildStatus() {
}
}

/**
* Capture code coverage reports using Jacoco jenkins plugin.
*
*/
void captureCodeCoverageReport() {
stage('Capture Code Coverage Report') {
step([$class : 'JacocoPublisher',
execPattern : '**/**.exec',
classPattern : '**/classes',
sourcePattern: '**/src/main/java'
])
}
}

/**
* Archive build artifacts.
*
Expand Down
6 changes: 3 additions & 3 deletions jenkins/Hono-Release-Pipeline.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy

/*******************************************************************************
* Copyright (c) 2016, 2018 Contributors to the Eclipse Foundation
* Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down Expand Up @@ -87,7 +87,7 @@ def checkOut() {
*/
def setReleaseVersionAndBuild(def utils) {
stage('Build') {
withMaven(maven: utils.getMavenVersion(), jdk: utils.getJDKVersion(), options: [jacocoPublisher(disabled: true), artifactsPublisher(disabled: true)]) {
withMaven(maven: utils.getMavenVersion(), jdk: utils.getJDKVersion(), options: [artifactsPublisher(disabled: true)]) {
sh "mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${RELEASE_VERSION}"
sh 'mvn clean install javadoc:aggregate -Dmaven.test.failure.ignore=false -DenableEclipseJarSigner=true -DsnapshotDependencyAllowed=false -Ddocker.skip.build=true'
}
Expand Down Expand Up @@ -145,7 +145,7 @@ def commitAndTag() {
*/
def setNextVersion(def utils) {
stage("Set next version") {
withMaven(maven: utils.getMavenVersion(), jdk: utils.getJDKVersion(), options: [jacocoPublisher(disabled: true), artifactsPublisher(disabled: true)]) {
withMaven(maven: utils.getMavenVersion(), jdk: utils.getJDKVersion(), options: [artifactsPublisher(disabled: true)]) {
sh "mvn versions:set -DallowSnapshots=true -DgenerateBackupPoms=false -DnewVersion=${NEXT_VERSION}"
}
}
Expand Down

0 comments on commit e02d668

Please sign in to comment.