-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Continuous Integration, GitHub
-
Epic Link:
-
Sprint:DevOps-13, DevOps-14, DevOps-15, DevOps-16
-
Story Points:1
According to the disclaimer, we should migrate the "build status" post build action (GitHub plugin) from com.cloudbees.jenkins.GitHubCommitNotifier to org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter:
Set build status on GitHub commit [deprecated] This notifier will set GH commit status. This step is DEPRECATED and will be migrated to new step in one of the next major plugin releases. Please refer to new universal step.
< <com.cloudbees.jenkins.GitHubCommitNotifier plugin="github@1.19.2"> < <statusMessage> < <content></content> < </statusMessage> < <resultOnFailure>FAILURE</resultOnFailure> < </com.cloudbees.jenkins.GitHubCommitNotifier> --- > <org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter plugin="github@1.19.2"> > <commitShaSource class="org.jenkinsci.plugins.github.status.sources.BuildDataRevisionShaSource"/> > <reposSource class="org.jenkinsci.plugins.github.status.sources.AnyDefinedRepositorySource"/> > <contextSource class="org.jenkinsci.plugins.github.status.sources.DefaultCommitContextSource"/> > <statusResultSource class="org.jenkinsci.plugins.github.status.sources.DefaultStatusResultSource"/> > <errorHandlers> > <org.jenkinsci.plugins.github.status.err.ChangingBuildStatusErrorHandler> > <result>FAILURE</result> > </org.jenkinsci.plugins.github.status.err.ChangingBuildStatusErrorHandler> > </errorHandlers> > </org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter>