Category "jenkins-pipeline"

How to mock variables from a groovy file

I have a groovy file created under "vars" in a Jenkins-shared-lib. Few variables are defined inside call(). I want to mock the variables in a groovy test file.

How to pass extra variables to ansible playbook running in a Jenkins pipeline

Here is the pipeline code that I want to execute from Jenkins pipeline{ agent { label 'ansible' } stages{ stage('SCM Checkout'){ ste

Jenkins job is not auto increment version which keeps overwrite the helm and docker with same version

Currently all our infra components docker images against the helm chart version or version file inside the infra components repository Issue with this model is,

Jenkins Bitbucket Webhook infinite build loop issue

I have set up a pipeline job in Jenkins which push changes to Bitbucket. This causes a new build trigger in Jenkins. How to avoid Jenkins job build if the commi

How to run multiple agents (given on runtime) simultaneously with Jenkins Declarative Pipeline?

I'm running a Jenkins Job on multiple platforms selected manually at runtime. Having multi-select Active Choices Parameter named "Platforms" for the relevant no

Why does Jenkins creates a subfolder within the workspace@script folder to checkout git code instead of the workspace@script itself?

This happened after I updated some plugins and added 'blue ocean' to our Jenkins. Every job we have is using a JenkinsFile to build and package our applications

Keeping quotes from std out for passing to bash

Okay, this is a bit convoluted but I've got a python script that digests a json file and prints a string representation of that file like so for id in pwds.keys

Jenkins jenkins.plugins.casc.ConfiguratorException

Am new and have problem while build jenkins on dockerfile in localhost. error: io.jenkins.plugins.casc.ConfiguratorException: No configurator for the following

Running Pythonscript over SSH from a Jenkinsagent doesn't start the script

Update: The problem seems to be quite different from what I initially thought. Information about this is at the bottom of the post. I've been having quite the s

How to run a Jenkins Startup Script

I need to run a script on the Jenkins Script Console at each Jenkins server start-up. Is that any way to automate that?

How can we trigger a parameterised jenkins release job manually (it takes Pull request ID) only if Pull request build job was successful?

I have setup a jenkins pipeline job which gets triggered whenever a new Pull request arrives on my github repository main branch (this job builds and run tests

Pass parameters to Jenkins shared library

I just simply want to pass the repo name cloud-nates in shared pipeline, so i've passed the parameter deployName from jenkinsfile to shared library. below is th

Docker not found when building docker image using Docker Jenkins container pipeline

I have a Jenkins running as a docker container, now I want to build a Docker image using pipeline, but Jenkins container always tells Docker not found. [simple

How to re-trigger a stage in a Jenkinsfile

I have a situation where in 2 Stages in a Jenkinsfile I have to do the following things: Push a Docker image to artifactory. This push is to a folder on artifac

Azure Board integration with Jenkins

Is it possible to get a azure board ticket created from a Jenkins event . As In your Jenkins pipeline , if an build fails , it should create an ticket on the az

Jenkins pipeline Schedule job that will skip Wednesday once in two week

I'm looking for a way to schedule my pipeline to skip Wednesday once every two weeks. Now it works like this: H 4 * * 1-2,4-5 But it skips all the Wednesday

Script section is not working in pipeline script in shared library

My Jenkins file: @Library("shared@dev")_ Start() My Start.groovy pipeline script: def call() { pipeline { agent any stages {

Jenkins miniOrange SAML 2.0 failed login

I have installed and configured miniorange plugin following exactly this setup: https://plugins.miniorange.com/saml-single-sign-on-sso-into-jenkins-using-google

escape single quote awk command in jenkins pipeline

I get error "awk: fatal: cannot open file `print' for reading (No such file or directory)" when executing this command in jenkins pipeline. sh """ssh -o StrictH

Set environmental variables from shell script in Jenkins pipeline

I have a requirement where I have a shell file (init.sh) which sets environmental variables based on conditions. My pipeline looks something like this pipeline