This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch feature/SLING-7597
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git
The following commit(s) were added to refs/heads/feature/SLING-7597 by this
push:
new eb5a57a SLING-7597 - Investigate setting up Windows testing
eb5a57a is described below
commit eb5a57a99f0887c81e45936a186a6e8c01fda1f3
Author: Robert Munteanu <[email protected]>
AuthorDate: Wed Feb 27 11:36:45 2019 +0100
SLING-7597 - Investigate setting up Windows testing
Attempt to really run commands on windows slaves - was broken
during refactoring.
---
Jenkinsfile | 69 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 33 insertions(+), 36 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index ca15276..eb87b3a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -14,57 +14,54 @@ node('ubuntu') {
// generates os-specific stages
def generateStages(String os, def mvnVersion, def javaVersion) {
def prefix = os == "windows" ? "win" : "linux"
+ def nodeLabel = os == "windows" ? "Windows" : "ubuntu"
def stages = {
- stage("[$prefix] Build shared code") {
- withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
- timeout(10) {
- runCmd "mvn -f shared/modules clean install"
+ node(nodeLabel) {
+ stage("[$prefix] Build shared code") {
+ withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
+ timeout(10) {
+ runCmd "mvn -f shared/modules clean install"
+ }
}
}
- }
- stage("[$prefix] Build CLI bundles") {
- withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
- timeout(10) {
- runCmd "mvn -f cli clean install"
+ stage("[$prefix] Build CLI bundles") {
+ withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
+ timeout(10) {
+ runCmd "mvn -f cli clean install"
+ }
}
}
- }
- stage ("[$prefix] Build shared code P2 repository") {
- withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
- timeout(10) {
- runCmd 'mvn -f shared/p2 clean package'
+ stage ("[$prefix] Build shared code P2 repository") {
+ withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
+ timeout(10) {
+ runCmd 'mvn -f shared/p2 clean package'
+ }
}
}
- }
- stage ("[$prefix] Build Eclipse plug-ins") {
- withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
- timeout(20) {
- if ( isUnix() ) {
- wrap([$class: 'Xvfb']) {
- sh 'mvn -f eclipse clean verify -Ddebug'
- }
- } else {
- try {
- bat 'mvn -f eclipse clean verify -Ddebug'
- } catch (ignored) {
- echo "Ignoring Windows failure for now:
${e.message}"
+ stage ("[$prefix] Build Eclipse plug-ins") {
+ withMaven(maven: mvnVersion, jdk: javaVersion, options:
[artifactsPublisher(disabled: true)]) {
+ timeout(20) {
+ if ( isUnix() ) {
+ wrap([$class: 'Xvfb']) {
+ sh 'mvn -f eclipse clean verify -Ddebug'
+ }
+ } else {
+ try {
+ bat 'mvn -f eclipse clean verify -Ddebug'
+ } catch (ignored) {
+ echo "Ignoring Windows failure for now:
${e.message}"
+ }
}
+ // workaround for
https://issues.jenkins-ci.org/browse/JENKINS-55889
+ junit 'eclipse/**/surefire-reports/*.xml'
+ archiveArtifacts artifacts: 'eclipse/**/logs/*.log'
}
- // workaround for
https://issues.jenkins-ci.org/browse/JENKINS-55889
- junit 'eclipse/**/surefire-reports/*.xml'
- archiveArtifacts artifacts: 'eclipse/**/logs/*.log'
}
}
- }
- }
-
- if ( os == "windows") {
- return node('Windows') {
- stages
}
}