Questions tagged [multibranch-pipeline]

Multibranch Pipeline is a Jenkins job configuration type provided by the Pipeline: Multibranch Plugin that detects and builds SCM branches.

Multibranch Pipeline is a Jenkins job configuration type provided by the Pipeline: Multibranch Plugin that detects and builds SCM branches.

310 questions
0
votes
1 answer

Jenkins Pipeline Multibranch doesn't run post steps if there is merge conflicts

I have a multibranch pipeline with the following behaviors: And the following Jenkinsfile: pipeline { agent { label 'apple' } stages { stage('Lint') { when { changeRequest() …
0
votes
1 answer

How to auto trigger a multibranch pipeline in Jenkins

I'm using the multi branch plugin in Jenkins. I'm using on-premise bitbucket and on-premise Jenkins who can talk to each other. Now I can scan the repo and for every branch I get a Jenkins job (which uses a Jenkinsfile from the repository. It works…
mealesbia
  • 845
  • 2
  • 12
  • 28
0
votes
1 answer

Jenkins Multibranch Pipleine: set _job_ name from Jenkinsfile

Short: Can I set the name of a Jenkins job created automatically by the Multibranch Pipeline job, to something calculated in the job itself? Long: We do a lot of microservices with mostly identical build processes, and we would like to have as…
Ibolit
  • 9,218
  • 7
  • 52
  • 96
0
votes
0 answers

Jenkins Amazon Cloud slave can't checkout multibranch pipeline repo

I configured ec2 cloud slave on jenkins - when my multibranch pipeline starting it's first checkout the scm when this run on master everything works fine and the checkout success but when it run on slave it's look it does not know the key: In the…
0
votes
0 answers

How to get the latest commit messages within a push and verify the message start with a certain regex pattern?

I have two questions 1. Try to parse for git commit messages, but the egrep execute as a separate command. The return result is always incorrect. The valid message can be "a-1" stage('test') { steps { script { …
Lazyworm
  • 113
  • 11
0
votes
3 answers

Jenkins: How to skip a specific stage in a multibranch pipeline?

We have "stage (build)" on all our branches. Temporarily how can we skip this stage to run on all our branches in multibranch pipeline. I know one solution is use when condition on stage and ask all developers to pull that branch into their…
0
votes
1 answer

Accessing private GitHub repos in Jenkins Multibranch Pipeline

I have Jenkins setup with both SSH and a private token - so it can access a "Git" private repo quite happily, and via the Config screen it can set the hooks. The pipeline itself works perfectly well outside this issue. My issue is where I want to…
Rycochet
  • 2,860
  • 1
  • 22
  • 39
0
votes
1 answer

How to publish over ssh in multibranch pipeline in jenkins

I have maven springboot project with Jenkinsfile at root. I have written stages in jenkins file to build jar file and it's working fine.Next stage is 'deployment' where i have to move jar file to Linux server and run it there. Could anyone please…
Madhu Sudhan Reddy
  • 607
  • 5
  • 15
  • 22
0
votes
1 answer

How can I delete one property from Jenkins pipeline?

In my Jenkins multibranch pipeline I want to use the following code in my Jenkinsfile: def props = [ parameters([ string( defaultValue: "Value1", name: 'VALUE_NAME', description: 'Something'), …
0
votes
1 answer

Run multiple branches in jenkinsfile with other conditions

I have a jenkinsfile that contains all the steps to build and deploy the newest code to our staging server. Now I need to modify this to support building to production. But building to production can ONLY be done manually and Jenkins cannot start it…
JimmyD
  • 2,629
  • 4
  • 29
  • 58
0
votes
0 answers

Build only changes in Jenkins Multibranch pipeline

I am working on Multibranch pipelines in Jenkins.We use SVN as repository and maven for build. I have placed the jenkins file in each branch. In jenkins file, After initial checkout, I wrote a function to iterate over the workspace and add the…
sundar s
  • 66
  • 6
0
votes
1 answer

Triggering the Feature/hotfix branch from Multibranch pipeline

I'm new to multi-branch pipeline concept and trying to implement in our project where we are running our jenkins builds inside docker containers. We have a requirement where all build against "develop" branch should be doing build and docker image…
R.V
  • 199
  • 1
  • 3
  • 13
0
votes
2 answers

Env variable value got reset to original even after assigning the pom version number in jenkins script

I have a scenario where i have to read the maven pom versions for different components and assign the version to docker image(TAG). But after i read the pom, assigned it to some global variable it will reset to original value in groovy jenkins…
0
votes
2 answers

Triggering Jenkins Multibranch Pipeline automatically if a PR is raised on GitHub

I am using Jenkins Multibranch pipeline. I've configured the APIs (github-webhook and ghprbhook) on GitHub. Currently, If I click on "Scan Repository Now/Scan Repository Log" in Jenkins, the Jenkins will go through the GitHub and creates a new PR…
sunbogaa
  • 405
  • 2
  • 6
  • 12
0
votes
1 answer

How to pull docker images in Jenkins multi-branch pipeline and spin up container?

I'm writing a Jenkinsfile to create builds for a multi-branch pipeline and docker/docker pipeline plugin for spinning up the docker containers in Jenkins. I have an image that I want to use to build the docker containers. I need to pull this image…
Noob Coder
  • 38
  • 4
1 2 3
20
21