Last active
August 1, 2019 12:29
-
-
Save nadavdaniellightapp/d228e6c8b8922861adc0d69586e59e73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent { | |
node { | |
label 'collectors-slave' | |
} | |
} | |
stages { | |
stage('Poduction Deploy - TL Approval') { | |
steps { | |
script { | |
GIT_COMMIT_EMAIL = sh (script: 'git --no-pager show -s --format=\'%ae\'',returnStdout: true).trim() | |
GIT_COMMIT_HASH_SHORT = sh (script: 'git log -n 1 --pretty=format:\'%h\'',returnStdout: true).trim() | |
GIT_COMMIT_HASH = sh (script: 'git rev-parse HEAD',returnStdout: true) | |
mail to: 'nadav.daniel@lightapp.com', | |
subject: "Job '${JOB_NAME}' (${BUILD_NUMBER}) is waiting for input", | |
body: "Production deployment intialized by ${GIT_COMMIT_EMAIL} commit https://github.com/lightapp/lion/${GIT_COMMIT_HASH} ${GIT_COMMIT_HASH_SHORT} server, Please go to ${BUILD_URL}/input and allow ${STAGE} deployment", | |
from: 'larobot@lightapp.com', | |
replyTo: 'larobot@lightapp.com' | |
timeout(time:10 ,unit:'MINUTES') { | |
input message:'MAster deployment waiting for input', | |
submitter:'nadav.daniel' | |
} | |
} | |
} | |
} | |
} | |
} |
deleted space
changed subjects
restored lines
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
deleted mime