Adding some changes for the status

This commit is contained in:
Brett Benassi 2018-09-28 15:42:31 -06:00
parent f6d967931c
commit b25ac9f773
No known key found for this signature in database
GPG key ID: 7056CA43F36FDA8C
7 changed files with 13 additions and 7 deletions

View file

@ -59,7 +59,8 @@ timeout(time: 6, unit: 'HOURS') {
junit 'artifacts/xml-unittests-output/*.xml'
} finally {
cleanWs notFailBuild: true
if (currentBuild.result == 'SUCCESS') {
def currentResult = currentBuild.result ?: 'SUCCESS'
if (currentResult == 'SUCCESS') {
githubNotify credentialsId: 'test-jenkins-credentials',
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed",
status: 'SUCCESS',

View file

@ -59,7 +59,8 @@ timeout(time: 6, unit: 'HOURS') {
junit 'artifacts/xml-unittests-output/*.xml'
} finally {
cleanWs notFailBuild: true
if (currentBuild.result == 'SUCCESS') {
def currentResult = currentBuild.result ?: 'SUCCESS'
if (currentResult == 'SUCCESS') {
githubNotify credentialsId: 'test-jenkins-credentials',
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed",
status: 'SUCCESS',

View file

@ -59,7 +59,8 @@ timeout(time: 6, unit: 'HOURS') {
junit 'artifacts/xml-unittests-output/*.xml'
} finally {
cleanWs notFailBuild: true
if (currentBuild.result == 'SUCCESS') {
def currentResult = currentBuild.result ?: 'SUCCESS'
if ( currentResult == 'SUCCESS') {
githubNotify credentialsId: 'test-jenkins-credentials',
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed",
status: 'SUCCESS',

View file

@ -59,7 +59,8 @@ timeout(time: 6, unit: 'HOURS') {
junit 'artifacts/xml-unittests-output/*.xml'
} finally {
cleanWs notFailBuild: true
if (currentBuild.result == 'SUCCESS') {
def currentResult = currentBuild.result ?: 'SUCCESS'
if (currentResult == 'SUCCESS') {
githubNotify credentialsId: 'test-jenkins-credentials',
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed",
status: 'SUCCESS',

View file

@ -59,7 +59,8 @@ timeout(time: 6, unit: 'HOURS') {
junit 'artifacts/xml-unittests-output/*.xml'
} finally {
cleanWs notFailBuild: true
if (currentBuild.result == 'SUCCESS') {
def currentResult = currentBuild.result ?: 'SUCCESS'
if (currentResult == 'SUCCESS') {
githubNotify credentialsId: 'test-jenkins-credentials',
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed",
status: 'SUCCESS',

View file

@ -59,7 +59,8 @@ timeout(time: 6, unit: 'HOURS') {
junit 'artifacts/xml-unittests-output/*.xml'
} finally {
cleanWs notFailBuild: true
if (currentBuild.result == 'SUCCESS') {
def currentResult = currentBuild.result ?: 'SUCCESS'
if (currentResult == 'SUCCESS') {
githubNotify credentialsId: 'test-jenkins-credentials',
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed",
status: 'SUCCESS',

View file

@ -3,7 +3,7 @@ pipeline {
options {
timestamps()
ansiColor('xterm')
timeout(time: 6, unit: 'HOURS')
timeout(time: 1, unit: 'HOURS')
}
environment {
PYENV_ROOT = "/usr/local/pyenv"