Re: Groovy Script to Skip Installation of Plugins and Enable Slave

2017-02-15 Thread Indra Gunawan (ingunawa)
Add option ‘-Djenkins.install.runSetupWizard=false’ to the JAVA_ARGS for 
Jenkins start-up.


From:  on behalf of Vikas Kumar 

Reply-To: "jenkinsci-users@googlegroups.com" 
Date: Wednesday, February 15, 2017 at 1:38 AM
To: Jenkins Users 
Subject: Groovy Script to Skip Installation of Plugins and Enable Slave

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/BSc/PR1zR3zjGkYlpkSvJZH0Nkpi4nxfdpmBQCLcB/s400/2017-02-15_19-28-17.png]

















  *   Enable Slave -> Master Access Control (listed under Configure System). 
This has been answered 
here
 but is not working for Jenkins v2.32.2 (latest as on date).
[https://lh3.googleusercontent.com/-1RlmxRmxhaw/WKQgsUfFKuI/BSk/22YPsyXPcpAB7GgwYkVSbIaTmEEtXXZFwCLcB/s400/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 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/76513c7b-3a9c-4acb-b1fb-3375ce033ef9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4B065405-A9DA-42FB-9E03-4E7E5BD08167%40cisco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Groovy Script to Skip Installation of Plugins and Enable Slave

2017-02-15 Thread Vikas Kumar
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 

 
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
>
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>- Enable Slave -> Master Access Control (listed under Configure 
>System). This has been answered here 
>
> 
>  
>but is not working for Jenkins v2.32.2 (latest as on date).
>
>
> 
>
>
>
>
>
>
>
>
>
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
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.


Groovy Script to Skip Installation of Plugins and Enable Slave

2017-02-15 Thread Vikas Kumar
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




















   - Enable Slave -> Master Access Control (listed under Configure System). 
This 
   has been answered here 
   

 
   but is not working for Jenkins v2.32.2 (latest as on date).












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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/76513c7b-3a9c-4acb-b1fb-3375ce033ef9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.