I have a use case where unattended builds need some different error handling than builds which someone is watching. Can we add something to the cause, or some other way of detecting if the build was started with "schedule build" vs "build now"?
You could add a parameter to the build with a default value, then set a non-default value when scheduling as a user.
I don't plan to add additional build cause information for builds that are started by the schedule build plugin.
Mark Waite
added a comment - You could add a parameter to the build with a default value, then set a non-default value when scheduling as a user.
I don't plan to add additional build cause information for builds that are started by the schedule build plugin.
technically impossible with the current way core and the plugin work. When you use the Build Now button you basically do a post request to this url (or visit this url when the job has parameters)
<joburl>/build?delay=0sec
The plugin is just adding some logic in front so the delay parameter is changed. This btw has the effect that when you schedule a job with parameters you will never get that exact timestamp you entered because the delay applies to the time when pressing the build button on the parameters page. So the run will actually start a few seconds to several minutes later depending how long you need to enter all parameters.
Markus Winter
added a comment - technically impossible with the current way core and the plugin work. When you use the Build Now button you basically do a post request to this url (or visit this url when the job has parameters)
<joburl>/build?delay=0sec
The plugin is just adding some logic in front so the delay parameter is changed. This btw has the effect that when you schedule a job with parameters you will never get that exact timestamp you entered because the delay applies to the time when pressing the build button on the parameters page. So the run will actually start a few seconds to several minutes later depending how long you need to enter all parameters.
Unassigned
chris Kiick
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Created:
Updated:
{"errorMessages":["jqlTooComplex"],"errors":{}}
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
You could add a parameter to the build with a default value, then set a non-default value when scheduling as a user.
I don't plan to add additional build cause information for builds that are started by the schedule build plugin.