Where does the code for pipeline's 'agent' live?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Where does the code for pipeline's 'agent' live?

Joe Fair-2
I'm looking at how jobs in pipelines work, but I'm having trouble searching for the code for the 'agent' tag in a pipeline.  I haven't found any "Symbol" for agent, but I may not have looked in the right package yet.  I understand there may be something about 'Stapler', but I'm not clear.

Where can I learn about 'agent'?
Thanks,
Joe

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAHhz2bcHZCbFdAvMYci4d70SUZBB3NDyDaoGKCTHdRC%2ByL%3DtUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Where does the code for pipeline's 'agent' live?

Robert Sandell-2
If it is the `agent` in declarative syntax you're after here are some starting points maybe, depending on what it is you want to learn:

https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/pipeline-model-extensions/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/DeclarativeAgent.java

/B


2018-04-17 15:30 GMT+02:00 Joe Fair <[hidden email]>:
I'm looking at how jobs in pipelines work, but I'm having trouble searching for the code for the 'agent' tag in a pipeline.  I haven't found any "Symbol" for agent, but I may not have looked in the right package yet.  I understand there may be something about 'Stapler', but I'm not clear.

Where can I learn about 'agent'?
Thanks,
Joe

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAHhz2bcHZCbFdAvMYci4d70SUZBB3NDyDaoGKCTHdRC%2ByL%3DtUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees, Inc.
CloudBees-Logo.png
Twitter: robert_sandell

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS36fU2r5cx8gf0B_1N-eG8SGmQWCXZzgmQAaJFCcd7dOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.