Comments (7)
hey @stevekuznetsov - Given the contents of that message, starting with the ;
appearing, then the AbortException is thrown here
At that point, how the UI renders is in the hands of the pipeline code, and beyond the scope of the openshift client plugin. Perhaps it has something to do with the use of step { ... script { ...
And throwing the Abort per everything we've seen is the right thing to do.
If there is doubt that the abort exception is being thrown, and if this is at all reproducible, you can temporarily but a try/catch around the apply to confirm.
@jupierce - any additional thoughts or items you think I might be overlooking?
from jenkins-client-plugin.
If this is an error on the GUI side of things -- where should I report it?
from jenkins-client-plugin.
Per https://wiki.jenkins-ci.org/display/JENKINS/Blue+Ocean+Plugin I would follow the "Issue tracking" link which takes you to https://issues.jenkins-ci.org and the blue ocean category.
Aside from confirming the AbortException was thrown which I mentioned previously beforehand, as a heads up, I bet they are going to ask for a simplified test case for them to repro with, full logs, etc.
from jenkins-client-plugin.
Going to go ahead and close ... of course reopen if new evidence like the AbortException not getting thrown emerges.
from jenkins-client-plugin.
It looks like something is catching the exception and printing it out instead of allowing the job to fail.
The message you are seeing is constructed here and just the content of the AbortException: https://github.com/openshift/jenkins-client-plugin/blob/master/src/main/resources/com/openshift/jenkins/plugins/OpenShiftDSL.groovy#L729
This has traditionally been enough to stop a pipeline from executing. Perhaps declarative syntax handles exceptions differently?
What happens if you put an
error( "This should stop the job")
in your script somewhere? Is that exception swallowed as well?
ref: https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-error-code-error-signal
from jenkins-client-plugin.
thanks @jupierce - the OpenShiftDSL.groovy link you posted lines up with the one I posted in #32 (comment)
some goes wrt the new syntax and possible exception handling ...i.e. step { .. script {...
so all good on those points (thanks again) :-)
Didn't know about error(...)
... thanks for the tip / I agree a good sanity check for @stevekuznetsov to try.
If error(...)
kills the job and throwing AbortException does not, then I suppose we use this bug to switch client plugin and OpenShiftDLS.groovy to use error(...)
.... agree ?
from jenkins-client-plugin.
Though it is interesting that the doc for that step says: You can also just throw new Exception(), but this step will avoid printing a stack trace.
from jenkins-client-plugin.
Related Issues (20)
- Plugin incompatible with new-style clouds configuration. HOT 5
- Error after Warning HOT 7
- Can't get api token from com.openshift.jenkins.plugnis.OpenShiftTokenCredentials in pipeline HOT 5
- List of DSL methods required HOT 3
- Error to parse POM's HOT 4
- 'restart' subcommand is missing for rollout()
- Support current version of oc tool HOT 4
- Plugin installation broke credentials used by other plugins HOT 12
- Argument was classified as an image, image~source, or loaded template reference but should be git repo HOT 7
- Leftover oc processes after wait() calls HOT 7
- Plugin doesn't detect capabilities (--ignore-not-found) from recent OC versions HOT 8
- No credentials shown in cluster configuration dropdown HOT 6
- Job fails if there are spaces in the project name, using raw command HOT 9
- Error flags cannot be placed before plugin name on external Jenkins declarative pipeline HOT 2
- Unable to retrieve object names using kubernetes-plugin sidecar container HOT 5
- java.nio.file.NoSuchFileException after upgrade to 1.0.37 HOT 5
- Certificate options not escaped HOT 5
- stdout and stderr not correctly splited when running with kubernetes plugin
- Future Release Branches Frozen For Merging | branch:release-4.16 branch:release-4.17
- stdout and stderr not correctly splitted when running with kubernetes plugin (2)
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 jenkins-client-plugin.