On Mon, Aug 12, 2019 at 10:27 AM Robert Sandell wrote:
> If your code is running in an http request thread, which it normally is when
> a user is visiting a config page you can ask Stapler for the current ancestor
> path;
>
> Stapler.getCurrentRequest().findAncestorObject(Job.class)
Or if you
If your code is running in an http request thread, which it normally is
when a user is visiting a config page you can ask Stapler for the current
ancestor path;
Stapler.getCurrentRequest().findAncestorObject(Job.class)
/B
Den sön 11 aug. 2019 kl 09:57 skrev Navnath Kumbhar :
> Thank you
Thank you Gavin. But I want this job name when I am in job config page. And
there I do not have "run" object. This is the scenario. Is there any other
alternative that I use to get job name when I am inside the config page?
On Sunday, 11 August 2019 12:43:41 UTC+5:30, Gavin Mogan wrote:
>
>
Inside of
https://github.com/jenkinsci/reqtify-plugin/blob/master/src/main/java/io/jenkins/plugins/ReqtifyGenerateReport.java#L220-L280
You can call run.getId() will give you the build Id
run.getParent().getId()
https://javadoc.jenkins-ci.org/hudson/model/Run.html#getId--
I'm not sure where you
No, it is not a pipeline plugin. It is simple plugin with which adds a
custom build step. Link to wiki :
https://wiki.jenkins.io/display/JENKINS/Reqtify+Plugin
On Saturday, 10 August 2019 21:58:35 UTC+5:30, Gavin Mogan wrote:
>
> In what context? Are you building a pipeline plugin? You should
No, I am trying to get it from Java Jenkins API.
On Saturday, 10 August 2019 22:00:11 UTC+5:30, Jeff Pearce wrote:
>
> Where are you trying to get it from? Groovy script, plugin extension
> point, something else?
> Sent from my iPhone
>
> On Aug 10, 2019, at 5:04 AM, Navnath Kumbhar > wrote:
>
Where are you trying to get it from? Groovy script, plugin extension point,
something else?
Sent from my iPhone
> On Aug 10, 2019, at 5:04 AM, Navnath Kumbhar wrote:
>
> Hello,
>
> I want to get my current running job name without build number. [Because I
> do not have build number]
> How
In what context? Are you building a pipeline plugin? You should have access
to just about everything.
On Sat., Aug. 10, 2019, 5:04 a.m. Navnath Kumbhar,
wrote:
> Hello,
>
> I want to get my current running job name without build number. [Because
> I do not have build number]
> How can I do
Hello,
I want to get my current running job name without build number. [Because I
do not have build number]
How can I do that?
Thank you in advance!
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and