Timeout and abort Jenkins jobs after 90 minutes.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Igor Mandrigin 2018-05-21 16:47:30 +02:00
parent 1aae1a9645
commit ff86ea7f95
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
7 changed files with 569 additions and 554 deletions

4
Jenkinsfile vendored
View File

@ -14,7 +14,8 @@ def installJSDeps() {
}
}
node ('macos') {
timeout(90) {
node ('macos') {
def apkUrl = ''
def ipaUrl = ''
def testPassed = true
@ -127,4 +128,5 @@ node ('macos') {
slackSend color: 'bad', message: BRANCH_NAME + ' failed to build. ' + env.BUILD_URL
throw e
}
}
}

View File

@ -2,21 +2,24 @@ env.LANG="en_US.UTF-8"
env.LANGUAGE="en_US.UTF-8"
env.LC_ALL="en_US.UTF-8"
node ('macos'){
stage('Git & Dependencies'){
timeout(90) {
node ('macos'){
stage('Git & Dependencies'){
checkout([$class: 'GitSCM', branches: [[name: 'develop']],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout']],
submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/status-im/status-react.git']]])
load "$HOME/env.groovy"
}
}
stage('Clean Testflight Users'){
stage('Clean Testflight Users'){
withCredentials([string(credentialsId: 'FASTLANE_PASSWORD', variable: 'FASTLANE_PASSWORD'),
string(credentialsId: 'APPLE_ID', variable: 'APPLE_ID')]) {
sh ('bundle install')
sh ('bundle exec fastlane ios clean')}}
}
}

View File

@ -17,7 +17,8 @@ def installJSDeps() {
}
}
node ('macos'){
timeout(90) {
node ('macos'){
def apkUrl = ''
def ipaUrl = ''
def testPassed = true
@ -115,4 +116,5 @@ node ('macos'){
}
}
}
}
}

View File

@ -17,7 +17,8 @@ def installJSDeps() {
}
}
node ('macos'){
timeout(90) {
node ('macos'){
def apkUrl = ''
def ipaUrl = ''
def testPassed = true
@ -133,4 +134,5 @@ node ('macos'){
stage('Run extended e2e tests') {
build job: 'end-to-end-tests/status-app-nightly', parameters: [string(name: 'apk', value: '--apk=' + apk_name)], wait: false
}
}
}

View File

@ -14,7 +14,8 @@ def installJSDeps() {
}
}
node ('macos') {
timeout(90) {
node ('macos') {
def apkUrl = ''
def ipaUrl = ''
def testPassed = true
@ -122,4 +123,5 @@ node ('macos') {
slackSend color: 'bad', message: REPO + ":" + BRANCH_NAME + ' failed to build. ' + env.BUILD_URL
throw e
}
}
}

View File

@ -17,7 +17,8 @@ def installJSDeps() {
}
}
node ('macos'){
timeout(90) {
node ('macos'){
def apkUrl = ''
def ipaUrl = ''
def testPassed = true
@ -117,4 +118,5 @@ node ('macos'){
def c = (testPassed ? 'good' : 'warning' )
slackSend color: c, message: 'Release build \nTests: ' + (testPassed ? ':+1:' : ':-1:') + ')\nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl
}
}
}

View File

@ -17,7 +17,8 @@ def installJSDeps() {
}
}
node ('macos'){
timeout(90) {
node ('macos'){
def apkUrl = ''
def ipaUrl = ''
def testPassed = true
@ -100,4 +101,5 @@ node ('macos'){
stage('Slack Notification') {
slackSend color: 'good', message: 'Release build ' + version + ' succesfully aploade to iTC/Play Market'
}
}
}