Open trunov-ms opened 7 years ago
Interesting feature request. I didn't know you could do this in GitLab. It seems a little strange to use the GitLab UI to cancel Jenkins builds, but in theory we could support this. I won't have time to build it, but if someone wants to submit a PR we would definitely consider it.
I also want this.
@omehegan for me, it's not that strange. Because this plugin is so powerful that all absolutely needed information about builds are available in our Gitlab instance, which is the place where we work. Jenkins consultation becomes optional, except for failed builds.
Thanks all for your job :)
I want this feature as well. From a GitLab user's perspective, it's even a bit unexpected that cancelling a pipeline inside GitLab does not actually stop it from running.
Any news on this?
I need this feature as well. If I cancel a build job in GitLab, the icon will be "cancelled". But the job in Jenkins is still running (or pending if there is a previous job running). After all queued jobs done, the icons in GitLab may be in wrong status.
+1
Is a workaround available?
No workaround available. This would require a change to the plugin to respond to the 'cancelled' message from GitLab. As I said previously, I'm not in a position to work on that, but if anyone else wants to I would be happy to review a PR.
No workaround available. This would require a change to the plugin to respond to the 'cancelled' message from GitLab. As I said previously, I'm not in a position to work on that, but if anyone else wants to I would be happy to review a PR.
I'll take this issue, let's talk before I start implementing anything.
If I cancel pipeline in GitLab Jenkins get response from Gitlab like this
I can see "status" : "canceled" in this response. Is it possible to stop Jenkins build if the related Gitlab pipeline has been canceled? Or remove the build from the Jenkins queue if it is not already running.