Skip to content

Commit

Permalink
Add timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Gurr <frederic.gurr@eclipse-foundation.org>
  • Loading branch information
fredg02 authored and jansupol committed Sep 7, 2021
1 parent 7db1721 commit ae9fe45
Showing 1 changed file with 42 additions and 40 deletions.
82 changes: 42 additions & 40 deletions etc/jenkins/Jenkinsfile_ci_build
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,51 @@ pipeline {

stages {
stage('Jersey build') {
parallel {
stage('JDK 8 ') {
agent {
label 'centos-7'
timeout(unit: 'MINUTES', time: 120) {
parallel {
stage('JDK 8 ') {
agent {
label 'centos-7'
}
tools {
jdk 'oracle-jdk8-latest'
maven 'apache-maven-latest'
}
steps {
sh '''
mvn -U -C -Dtyrus.test.container.client=org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer -Pbundles clean install -Dmaven.javadoc.skip=true
'''
}
}
tools {
jdk 'oracle-jdk8-latest'
maven 'apache-maven-latest'
}
steps {
sh '''
mvn -U -C -Dtyrus.test.container.client=org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer -Pbundles clean install -Dmaven.javadoc.skip=true
'''
}
}
stage('JDK 13 ') {
agent {
label 'centos-7'
}
tools {
jdk 'openjdk-jdk13-latest'
maven 'apache-maven-latest'
}
steps {
sh '''
mvn -U -C -Dtyrus.test.container.client=org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer -Pbundles clean install -Dmaven.javadoc.skip=true
'''
stage('JDK 13 ') {
agent {
label 'centos-7'
}
tools {
jdk 'openjdk-jdk13-latest'
maven 'apache-maven-latest'
}
steps {
sh '''
mvn -U -C -Dtyrus.test.container.client=org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer -Pbundles clean install -Dmaven.javadoc.skip=true
'''
}
}
//stage('JDK 17 ') {
// agent {
// label 'centos-7'
// }
// tools {
// jdk 'openjdk-jdk17-latest'
// maven 'apache-maven-latest'
// }
// steps {
// sh '''
// mvn -U -C -Dtyrus.test.container.client=org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer -Pbundles clean install -Dmaven.javadoc.skip=true
// '''
// }
//}
}
//stage('JDK 17 ') {
// agent {
// label 'centos-7'
// }
// tools {
// jdk 'openjdk-jdk17-latest'
// maven 'apache-maven-latest'
// }
// steps {
// sh '''
// mvn -U -C -Dtyrus.test.container.client=org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer -Pbundles clean install -Dmaven.javadoc.skip=true
// '''
// }
//}
}
}
}
Expand Down

0 comments on commit ae9fe45

Please sign in to comment.