-
Notifications
You must be signed in to change notification settings - Fork 135
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
Pre-notify before build starts #74
Comments
Current Stash API knows only three statuses
As the build step there is nothing to do with these ones as they triggered only at the time the job actually starts. The internet says that BuildWrapper could be implemented, but this a kind of research for me. |
Yeah, I want to set |
This is actually a bug; once a job is in a queue, it should be marked as There is an option to use It might be also interesting to go completely in the way of Listeners (i.e. use |
Decomposition is an option. I hope I'll get this and start 2.0 branch sometimes |
The general question for pre-build state is that what to do with job state if it was cancelled. No one status represent this situation. Currently I see no option to unmark the state. Until we have a decision - pre-build notifying is not an option |
Canceling the build from the queue is not much different from aborting the build during the first second. The build has not completed, and will not complete, but the code under test is not to blame. Abort marks the build as FAILED, and so should the cancel. That's not optimal, obviously, but far better than reporting SUCCESS (which could allow merging untested code) or INPROGRESS (which could make the user wait for the results instead of taking action). We could ask Atlassian to add more codes in the future versions. In the meantime, maybe the detailed status could be added to the message, e.g. For matrix builds that report results from the child jobs only, nothing needs to be reported on cancel. |
I've created a request to add options including QUEUED to the BuildState enum: https://jira.atlassian.com/browse/BSERV-13304 |
I'd like to have know if this plugin could send notifications for job runs that are queued, but not yet running.
The problem I'm seeing is that we have a limited number of Jenkins executors. Users create 15 PRs in stash. Each PR triggers a notification to Jenkins. Jenkins queues up all of these jobs. However, it does not trigger the stash rest api that a job has started -- thus the PR at stash looks like no build job has been triggered. The stash side doesn't see the "build in progress" till the job is finally picked up.
Ideally the stash notifier could "ping back" to Stash once the job is queued, not once it's begun.
Is that possible?
The text was updated successfully, but these errors were encountered: