Comments (7)
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.
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. cancelled by Jenkins @ http://jenkins/
or aborted by Jenkins @ http://jenkins/
For matrix builds that report results from the child jobs only, nothing needs to be reported on cancel.
from stashnotifier-plugin.
Current Stash API knows only three statuses
"state": "<INPROGRESS|SUCCESSFUL|FAILED>",
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.
from stashnotifier-plugin.
Yeah, I want to set state=inprogress
over at stash when the job call is received as jenkins not when job actually starts building. This way when there's a long queue, stash will show that the build has "started" (effectively been queued up to run).
from stashnotifier-plugin.
This is actually a bug; once a job is in a queue, it should be marked as pending
in Stash.
There is an option to use BuildWrapper
(I'm not sure I understand well what the class does though) or to use QueueListener
. Either case, this will require quite extensive decomposition of StashNotifier
class.
It might be also interesting to go completely in the way of Listeners (i.e. use BuildStepListener
instead of Notifier
) and rewrite the plugin completely.
from stashnotifier-plugin.
Decomposition is an option. I hope I'll get this and start 2.0 branch sometimes
from stashnotifier-plugin.
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
from stashnotifier-plugin.
I've created a request to add options including QUEUED to the BuildState enum: https://jira.atlassian.com/browse/BSERV-13304
from stashnotifier-plugin.
Related Issues (20)
- Only notify current repo when multiple repos are in use HOT 4
- Add argument for build name HOT 10
- More control over bitbucket bit failure popup HOT 3
- Missing required parameter: "buildName" HOT 12
- Status in case of multiple commits only returned for newest HOT 2
- Pipeline flow get stuck at “Notifying stash” after finishing all stages HOT 3
- Exception while Notifying Build status to Bitbucket HOT 1
- captcha error HOT 2
- Working with Proxy HOT 15
- Add Support for notifying Build Logs and Artifacts for Bitbucket Server >7.5 HOT 2
- java.lang.ClassCastException: expects class java.lang.String HOT 11
- INPROGRESS status missing HOT 2
- Duplicate status notifications HOT 2
- Job continues to run on password expiration exception HOT 2
- Swappable Client Implementation? HOT 1
- Options to handle exception when notifying bitbucket HOT 4
- Bitbucket 7.15 RestAPI update HOT 6
- Allow overriding the build url used for the build
- How to enable logs for this Plugin HOT 1
- Inquiry about Dynamic Credential Support in StashNotifier Plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stashnotifier-plugin.