New answers tagged

0

First of all, I'm not sure if you want to keep the container in the block because the container will be stopped as soon as its body exits if you use withRun. So you can run the COMMAND that specified after the IMAGE can be run within either Image.run([arg, command]) or withRun according to Jenkins pipeline-syntax page. $ docker run [OPTIONS] IMAGE [COMMAND] [...


0

There is an answer on StackOverflow to Clean way to exit declarative Jenkins pipeline as success? by @Ivan to skip stages conditonally in a declarative pipeline: stage('Run if expression ') { when { expression { skipBuild != true } } stages { stage('Hello') { steps { echo "Hello there" ...


1

Jenkins stage view is in fact showing that the jobs have ended. More specifically, the jobs have failed, as indicated by the "failed" in the bottom-right corner of the stage which failed.


0

With a bat pipeline step it works with: script { withEnv ( ['JENKINS_NODE_COOKIE=do_not_kill'] ) { bat """ @set prompt=\$G\$S cd ${RUN_DIR} start \"title\" my.bat start \"title\" my.cmd ...


0

The simplest way to do this would probably be to add a retry option to the pipeline. See https://www.jenkins.io/doc/book/pipeline/syntax/#options


0

I have same issue, adding mkdir .local && chmod g+rwx .local before instalation helped me. RUN mkdir .local && chmod g+rwx .local \ && echo 'y' | sfdx plugins:install sfpowerkit or install it whithin jenkins 'steps'. it might not be very clever or wise but it should work.


1

In addition, we allow devs to access Jenkin’s UI to spin up all kinds of jobs This would be the first thing that should be changed. The pipelines should only be started automatically instead of manual. DevOps is a culture and implies that all repetitive work should be automated. Why did this job fail? You should ask them whether they read the log. If the ...


0

My sh """ commands """ step was not using the $http_proxy environment variable mentioned in the .bashrc or /etc/profile. What I did was using the Jenkins Prepare an environment for the run option and adding my values. Now a simple pipeline uses the Squid proxy settings without any issue. A wget connects to the Squid proxy ...


Top 50 recent answers are included