This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/master by this push:
new a657fc9 Add timeouts for each build step
a657fc9 is described below
commit a657fc9830ded4587b26889c788fdffd6bd9bd60
Author: Antoine Toulme <[email protected]>
AuthorDate: Sat Feb 8 10:46:33 2020 -0800
Add timeouts for each build step
---
Jenkinsfile | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 2f06d8d..dc9f8ff 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,22 +16,28 @@ pipeline {
stages {
stage('Get submodules') {
steps {
- sh 'git submodule update --init --recursive'
+ timeout(time: 5, unit: 'MINUTES') {
+ sh 'git submodule update --init --recursive'
+ }
}
}
stage('Set up gradle') {
steps {
- sh """if [ ! -f "gradle-5.0-bin.zip" ]; then
- wget
https://services.gradle.org/distributions/gradle-5.0-bin.zip
- unzip gradle-5.0-bin.zip
- gradle-5.0/bin/gradle setup
- fi
- """
+ timeout(time: 5, unit: 'MINUTES') {
+ sh """if [ ! -f "gradle-5.0-bin.zip" ]; then
+ wget
https://services.gradle.org/distributions/gradle-5.0-bin.zip
+ unzip gradle-5.0-bin.zip
+ gradle-5.0/bin/gradle setup
+ fi
+ """
+ }
}
}
stage('Build') {
steps {
- sh "./gradlew allDependencies checkLicenses spotlessCheck test
assemble"
+ timeout(time: 60, unit: 'MINUTES') {
+ sh "./gradlew allDependencies checkLicenses spotlessCheck
test assemble"
+ }
}
}
stage('Publish') {
@@ -39,7 +45,9 @@ pipeline {
branch "master"
}
steps {
- sh "./gradlew publish"
+ timeout(time: 30, unit: 'MINUTES') {
+ sh "./gradlew publish"
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]