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

14 views
Skip to first unread message

Joe Fair

unread,
Apr 17, 2018, 9:30:39 AM4/17/18
to jenkin...@googlegroups.com
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

Robert Sandell

unread,
Apr 17, 2018, 10:49:35 AM4/17/18
to jenkin...@googlegroups.com
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


--
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 jenkinsci-dev+unsubscribe@googlegroups.com.
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
Reply all
Reply to author
Forward
0 new messages