Skip to content

Commit

Permalink
Add Jenkinsfile for CI on Eclipse Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
erdlet committed Aug 12, 2022
1 parent ad02db7 commit 3ef0a7f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

pipeline {
agent any

tools {
maven "apache-maven-latest"
jdk "temurin-latest"
}

stages {
stage("Compile") {
steps {
withMaven() {
sh "mvn -Pstaging clean compile"
}
}
}

stage("Tests") {
steps {
withMaven() {
sh "mvn -Pstaging test"
}
}
}

stage("Integration-Test") {
steps {
withMaven() {
sh "wget https://download.eclipse.org/ee4j/glassfish/glassfish-7.0.0-SNAPSHOT-nightly.zip"
sh "unzip glassfish-7.0.0-SNAPSHOT-nightly.zip"
sh "glassfish7/bin/asadmin start-domain"

sh "mvn -Pstaging,testsuite-glassfish verify"

sh "glassfish7/bin/asadmin stop-domain"
}
}
}
}
}

0 comments on commit 3ef0a7f

Please sign in to comment.