I'm trying to switch to using the pipeline plugin and I'm having a really
hard time finding documentation. In particular I want to call an ant build
script and I don't want to do it with sh/bat because the OS may change.

I found some documentation at [1], however I get errors about missing
properties when I try the example.

I found the withAnt block in the snippet generator, but can't find the
syntax for inside the block.

It's not clear to me where I should put the node {} blocks either. I have
seen that it's a good idea to do things on a node to ensure I know where
it's running, but I'm not having a lot of luck getting the syntax right.

I'm also trying to limit which node the job runs on. I found [2] and tried
using "node('fll-build')" and get errors:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 5: Undefined section "node" @ line 5, column 2.
        node('fll-build') {     
    ^


You can see the current state of my experiments, and the history of what
I've tried, at [3]

1 -
https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.step.StepContext.ant
2 -
https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#using-agents
3 - https://github.com/jpschewe/fll-sw/blob/jenkins-pipeline/Jenkinsfile

-- 
http://mtu.net/~jpschewe

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

Reply via email to