File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2323 }
2424
2525 $jar = " ${jenkins::libdir} /jenkins-cli.jar"
26- $extract_jar = " jar -xf ${jenkins::libdir} /jenkins.war WEB-INF /jenkins-cli.jar"
27- $move_jar = " mv WEB-INF/jenkins-cli. jar ${jar} "
26+ $download_jar = " wget http://localhost: ${jenkins::port} /jnlpJars /jenkins-cli.jar -O ${jar} .downloading "
27+ $move_jar = " mv ${ jar} .downloading ${jar} "
2828 $remove_dir = ' rm -rf WEB-INF'
2929 $cli_tries = $jenkins::cli_tries
3030 $cli_try_sleep = $jenkins::cli_try_sleep
3636 creates => $jar ,
3737 }
3838 ~> exec { ' jenkins-cli' :
39- command => " ${extract_jar } && ${move_jar} && ${remove_dir }" ,
39+ command => " ${download_jar } && ${move_jar} " ,
4040 path => [' /bin' , ' /usr/bin' ],
4141 cwd => ' /tmp' ,
4242 refreshonly => true ,
You can’t perform that action at this time.
0 commit comments