All,

This stands solved now.

To ignore the plugins, just use this

echo ${JENKINS_VERSION} > 
/usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
echo ${JENKINS_VERSION} > 
/usr/share/jenkins/ref/jenkins.install.InstallUtil.lastExecVersion

and for the enabling slave, the answer here 
<http://stackoverflow.com/questions/41578991/set-enable-slave-%E2%86%92-master-access-control-from-script-console>
 
is good, all one needs is to import the package *import 
jenkins.security.s2m.**

Hope this helps someone.

Cheers,
Vikas

On Wednesday, 15 February 2017 20:38:04 UTC+11, Vikas Kumar wrote:
>
> Hello Everyone,
>
> I am trying to automate initialization of Jenkins Docker container and 
> looking to automate two parts.
>
>
>    - Ignore this part to select plugins. I don't need this as I am 
>    installing required plugins at the build time
>
>
>
> <https://lh3.googleusercontent.com/-gGElyXPcp8o/WKQgILL71mI/AAAAAAAABSc/PR1zR3zjGkYlpkSvJZH0Nkpi4nxfdpmBQCLcB/s1600/2017-02-15_19-28-17.png>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>    - Enable Slave -> Master Access Control (listed under Configure 
>    System). This has been answered here 
>    
> <http://stackoverflow.com/questions/41578991/set-enable-slave-%E2%86%92-master-access-control-from-script-console>
>  
>    but is not working for Jenkins v2.32.2 (latest as on date).
>
>
> <https://lh3.googleusercontent.com/-1RlmxRmxhaw/WKQgsUfFKuI/AAAAAAAABSk/22YPsyXPcpAB7GgwYkVSbIaTmEEtXXZFwCLcB/s1600/2017-02-15_19-53-00.png>
>
>
>
>
>
>
>
>
>
>
> Thanks,
> Vikas
>

-- 
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/b38aca98-57c6-4441-8ca2-1b5466582fa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to