Update change request details in Jenkins pipeline
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Xanadu
- DevOps
Update the change request details associated with a Jenkins pipeline by running the snDevOpsUpdateChangeInfo script in the pipeline.
Before you begin
Role required: Jenkins admin
About this task
- cancel: Change request state must be implement to move the state to cancel. reason is a mandatory input to update the state to canceled.
- closed: Change request state must be implement or post implement to move the state to close. close_code and close_notes are mandatory input to update the state to closed.
Specify the change request state as an integer value:
- 4 - Cancel (Value set in the sn_devops.change_request.cancel_state property)
- 3 - Closed (Value set in the sn_devops.change_request.closed_state property)
When you update a choice field, you must specify a valid choice value that is
available in the corresponding choice list. For example, the choice list values for
the Close code field are successful, successful_issues, and
unsuccessful.
Procedure