Hi,
I am trying to programmatically create an Jenkins job with code being
checked out fromSVN. So for adding new SVN credentials I programmatically
add the new credentials into the credentials.xml file present in
$JENKINS_HOME folder and link the corresponding customized ID to the job
using the <credentials> tag in job config file.
I have tried to create a plugin for implement this. This I based on the
credentials plugin using the Jenkins CLI commands.
If there is any there any other approach to this I’d like to know.
Basically I have automated the job creation process and want to be able to
programmatically add new credentials on job creation in Jenkins.
*Problems faced:*
I ahve tried to build the credentials plugin after addition of a couple of
syso statements. This was to check inputs the plugin takes to eventually
modify credentials.xml file.
Specifically what I was looking for: In the *doConfigSubmit()* function of
*SystemCredentialsProvider* class; the data *req.getSubmittedForm()*
consists of or what the StaplerRequest's
*bindJSONToList(DomainCredentials.class,
data.get("domainCredentials"))* function returns. This is so i can
programatically provide this data rather than from the current UI input
structure.
May I please get an opinion on this. Any help would be much appreciated.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/f3511e71-3965-4539-bd3b-a87d80920aaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.