Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jenkins): Support for updating job description #924

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

ajordens
Copy link
Contributor

This supports orca updating the description of a
running/completed job (cannot be queued) and deep linking
back to the execution view.

curl -X "PATCH" "https://localhost:8085/masters/my_master/jobs/my_job_name/update/553" \
     -H 'Content-Type: application/json' \
     -d $'{
  "description": "This build was triggered by a super swsssssseet <a href=\\"https://spinnaker/#/applications/my_app/executions/details/01EX5E3FT7PVSRNGS44EHCDPDF\\">Spinnaker</a>."
}'

This supports `orca` updating the description of a
running/completed job (cannot be queued) and deep linking
back to the execution view.

```
curl -X "PATCH" "https://localhost:8085/masters/my_master/jobs/my_job_name/update/553" \
     -H 'Content-Type: application/json' \
     -d $'{
  "description": "This build was triggered by a super swsssssseet <a href=\\"https://spinnaker/#/applications/my_app/executions/details/01EX5E3FT7PVSRNGS44EHCDPDF\\">Spinnaker</a>."
}'
```
@ajordens
Copy link
Contributor Author

ajordens commented Jan 29, 2021

image

@RequestBody UpdatedBuild updatedBuild,
HttpServletRequest request
) {
def jobName = ((String) request.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is wild and crazy

I get that it is the pattern everywhere else in here though..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree on the wild and craziness.

@ajordens ajordens merged commit 04b5627 into spinnaker:master Jan 29, 2021
@ajordens ajordens deleted the update-jenkins-job-description branch January 29, 2021 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants