Is it possible to to have a third state (apart from "STABLE" and "UNSTABLE") for builds?

24 views
Skip to first unread message

Matej Kosik

unread,
Mar 4, 2016, 4:58:23 AM3/4/16
to Jenkins Users
Hi everyone,

I have some builds that do roughly something like:
- git clone
- make

Because of the flaky origin, the clone sometimes fail.
In that case, I would like to mark a given build as "SKIPPED" rather than "UNSTABLE".

(from within a shell-build-action)

Is something like that possible?

Many thanks in advance.
--
Matej

James Nord

unread,
Mar 10, 2016, 2:33:21 PM3/10/16
to Jenkins Users
Technically yes - as the Result is extensible.

In reality you would then have to fork various plugins.

However there already is NOT_BUILT which sounds like what you want - so the question becomes how to get the build to show this state given your conditions.

If Jenkins is doing the clone then you may need to patch the plugin - if you are doing the clone (why?) then you may be able to use a groovy build step so long as the build result is not final.

/James
Reply all
Reply to author
Forward
0 new messages