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
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
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
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