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

2018-04-17 Thread Robert Sandell
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-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTAgent.java
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/pipeline-model-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTStage.java
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/Agent.groovy
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/pipeline-model-extensions/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/DeclarativeAgent.java
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy#L486

/B


2018-04-17 15:30 GMT+02:00 Joe Fair :

> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/CAHhz2bcHZCbFdAvMYci4d70SUZBB3
> NDyDaoGKCTHdRC%2ByL%3DtUA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Robert Sandell*
Software Engineer
CloudBees, Inc.
[image: CloudBees-Logo.png] 
E: rsand...@cloudbees.com
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 jenkinsci-dev+unsubscr...@googlegroups.com.
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.


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

2018-04-17 Thread Joe Fair
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 jenkinsci-dev+unsubscr...@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.