fabric8-services / fabric8-jenkins-proxy

Apache License 2.0
1 stars 16 forks source link

Issue #267 Write Jenkins status API on a new server #268

Closed kishansagathiya closed 6 years ago

kishansagathiya commented 6 years ago

This commit creates a new server on :9092 and add an API at /api/status, which would return current status of jenkinns and trigger it unidling when the user's token_json(OSIO token) passed in the query

Request: POST https://localhost:9092/api/status?token_json=$TOKEN_JSON
Response: { status: idled|starting|running }

Tested this to be working locally. @chmouel @sthaha Let me know if current approach look good to you. If so, I will move toward writing tests for this.

Part of https://github.com/openshiftio/openshift.io/issues/3356 Fixes #267

alien-ike commented 6 years ago

Ike Plugins (test-keeper)

Thank you @kishansagathiya for this contribution!

It appears that no tests have been added or updated in this PR.

Automated tests give us confidence in shipping reliable software. Please add some as part of this change.

If you are an admin or the reviewer of this PR and you are sure that no test is needed then you can use the command /ok-without-tests as a comment to make the status green.

For more information please head over to official documentation. You can find there how to configure the plugin - for example exclude certain file types so if PR contains only them it won't be checked.