Hello Mr.Kohsuke,
Hats off for giving us Jenkins. I am thrilled by its capabilities.
My problem is that I am creating a job programmatically using create-job CLI
command. The job configuration will have password fields (for RTC, TFS,
Tomcat, etc). After the job gets created, the passwords were still not
encrypted. I followed this post and tried invoking save() function on both
AbstractProject<?,?> and Item objects by creating a small CLI plugin called
save-job.
After I execute my save-job command, only RTC password gets encrypted
successfully. TFS, Tomcat and other passwords are not encrypted. Please help
me in fixing this issue. Below is the CLI plugin code for saving the job.
@Extension
public class SaveJobCommand extends CLICommand {
@Argument(metaVar = "JOB", usage = "Name of the job to be saved")
public AbstractProject<?, ?> job;
public String getShortDescription()
{
return "Saves the given job to re-encrypt the passwords";
}
protected int run() throws Exception {
this.job.save();
return 0;
}
}
Many thanks in advance.
--
View this message in context:
http://jenkins-ci.361315.n4.nabble.com/Re-jenkins-security-password-encryption-tp4652458p4673347.html
Sent from the Jenkins dev mailing list archive at Nabble.com.