Calling Java from jenkinsfile to parse XML

2019-04-11 Thread Matt Q
I am trying to call some Java code in our plugin from the jenkinsfile to parse XML (I have been able to parse it in the jenkinsfile but would like to abstract the implementation from the pipeline). I am passing an XML file to a method that works fine when this file is passed from within the plug

Re: Generate/Execute Pipeline from plugin programatically?

2019-02-07 Thread Matt Q
Thanks for the replies. I am able to create pipeline jobs by modifying an existing config.xml and posting it to the command line interface:so I am exploring that route. I was trying to avoid using the XML file but is it safe to assume that the config.xml files will be backwards compatible if we

Generate/Execute Pipeline from plugin programatically?

2019-01-25 Thread Matt Q
Is there an existing Java API for generating Jenkins Pipelines programmatically? I tried to execute a simple declarative pipeline as a Groovy Postbuild step: #!/usr/bin/env groovy pipeline { agent any stages { stage('Test Stage') { steps { echo '- In Test Stage--' } } } } in J

Create Pipelines programmatically?

2019-01-25 Thread Matt Q
Is there an existing Java API for generating Jenkins Pipelines programmatically? I tried to execute a simple declarative pipeline as a Groovy Postbuild step: #!/usr/bin/env groovy pipeline { agent any stages { stage('Test Stage') { steps { echo '- In Test Stage--' } } } } in J