Category "jenkins-pipeline"

Jenkins does not recognize command sh?

I've been having a lot of trouble trying to get a Jenkinsfile to work. I've been trying to run this test script: #!/usr/bin/env groovy node { stage('Build

Jenkins shell script returned exit code 1 when the searched string isn't exsist

I'm tring the following at Jenkins in aim to search strings of failures in jobs. This will run on daily basis. def sd = "2020" + "${env.START_DATE}" + "0000"

How to prevent Jenkins SCM polling from triggering a build on branch creation

I have git SCM polling set up in my Jenkins server job. I run the following commands on my local machine and they trigger a Jenkins build: git checkout dev git

How to stop build from executing from the pipeline script?

everyone! Sorry if the question is stupid, I'm just learning how to deal with Jenkins :) For the testing task I'm doing I need to start server, start Tomcat, th

How to get child job logs in parent job on child job failure?

I want to get child job logs in parent job irrespective of if child job passes or fails. Following code returns child jobs logs in parent job only when child jo

How to add a timeout step to Jenkins Pipeline

When you are using a free style project you can set that after 20 minutes the build is aborted if not concluded. How is this possible with a Jenkins Multi Branc