A pipeline step to notify a status for any GitHub commit
MIT License
This step allows a pipeline job to notify a status for any GitHub commit.
Intended for jobs that want to notify GitHub of any desired event with complete control over the notification content. Including context, status or target url.
The available parameters are:
It may be cumbersome to specify all parameters, so this step will try to infer some of them if and only if are not provided. The parameters that can be inferred are:
Please note that infer will only work if you have Git Build Data and the parent of the Build has one and only one SCM, for example you created a Multibranch Pipeline project and you are using a Jenkinsfile build mode. If you find problems when inferring please specify the required data explicitly. (You can access this data on your Jenkinsfile by using the appropriate env variables)
githubNotify account: 'raul-arabaolaza', context: 'Final Test', credentialsId: 'raul-github',
description: 'This is an example', repo: 'acceptance-test-harness', sha: '0b5936eb903d439ac0c0bf84940d73128d5e9487'
, status: 'SUCCESS', targetUrl: 'https://my-jenkins-instance.com'
githubNotify description: 'This is a shorted example', status: 'SUCCESS'