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
1
vote
1 answer

Injecting secrets in Jenkins multibranch pipeline

I have local jenkins setup with admin access. I have configured plugins as per this https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs. Though, I am still unclear about how to inject secrets in…
Ani
  • 463
  • 4
  • 20
1
vote
1 answer

Jenkins and GitLab CI integration with Multibranch and individual pipelines

I am testing a Jenkins CI/CD method. There is a single git repo with a Master branch, a QA branch, and a Dev branch. There are also many individual developer and feature branches that get merged into dev. The dev branch gets merged up to qa and qa…
Cyrusc
  • 163
  • 1
  • 10
1
vote
0 answers

Jenkins Multibranch pipeline fails if branch does not have jenkinsfile

I have a legacy build system on which I want to incrementally add multibranch pipeline support to branches so all branches will build and test for Continuous Integration. However ... old branches do not have a jenkinsfile present and a multibrach…
Rob Smyth
  • 1,768
  • 11
  • 19
1
vote
0 answers

How to move jenkins multi-branch pipeline job workspace

I've moved the Jenkins workspace (/var/lib/jenkins/workspace) to another volume via localhost:8080/configure → Home directory → Advanced → Workspace Root Directory: /vol3/jenkins/workspace/${ITEM_FULLNAME}. That change, however, is disregarded by…
tarabyte
  • 17,837
  • 15
  • 76
  • 117
1
vote
0 answers

How to make a parameterized multibranch pipeline trigger?

Can you please give me an example of how should the Jenkinsfile config look to be triggered by a curl http trigger-buildwithparameters? I have tried: properties([parameters( [string(defaultValue: 'nothing', description: 'gitcommit', …
1
vote
1 answer

How to change the default timeout for the Jenkins Artifactory plugin in a Multibranch Pipeline job?

I have a Jenkins Multibranch Pipeline build job that is uploading a rather large number of big files to Artifactory, and therefore the upload step is taking longer than the default 5 minute limit defined in the Artifactory Jenkins…
1
vote
2 answers

How to run Jobs in a Multibranch Project sequential instead of parallel

I have configured a multibranch-pipeline project in Jenkins. This project run integration test on all my feature branches (git). For each job in the pipeline project it creates an instance of my webapp (start tomcat and other dependencies). Because…
Cayacdev
  • 25
  • 8
1
vote
1 answer

svn multibranch changes base in jenkins ci

I have set up a jenkins instance for a multibranch svn project which is triggered by a post-commit hook passing affected branche's name as parameter to jenkins. Jenkins then does checkout sources from given branch and compiles them. This works quite…
1
vote
3 answers

Pass Artifact or String to upstream job in Jenkins Pipeline

Goal I'm trying to orchestrate a dependency chain using the GitHub organization plugin along with the jenkins pipeline. As the products I'm building have a number of shared dependencies, I'm using nuget packages to manage dependency versioning and…
0
votes
1 answer

Getting "java.net.ConnectException: Connection refused" while using Jenkins plugin for Gitea as well as GitLab

On adding Gitea Server (using Gitea jenkins plugin), it does not connect to Gitea server instance giving "java.net.ConnectException: Connection refused" error. So, I thought this might be an error of Gitea jenkins plugin and tried this for GitLab,…
0
votes
2 answers

Is the Jenkins RESTful API locally accessible from inside of a pipeline run?

I know there is a remote access api: https://www.jenkins.io/doc/book/using/remote-access-api/ But is this API accessible via localhost and unauthenticated from inside a pipeline run? I say unauthenticated because it would be hit from inside a…
red888
  • 27,709
  • 55
  • 204
  • 392
0
votes
0 answers

NullPointerException using Context aware credential store of Conjur plugin 1.0.15

I am using a Jenkins instance 2.375.2 and Conjur plugin 1.0.15. I have a multi-branch pipeline. I am able to refresh credential store and see my CyberArk secrets sync’d in the ‘credentials’ tab in Jenkins UI. But when I try to fetch them using…
0
votes
0 answers

How to turned a multi-branch Jenkins Job into a Job DSL (Conversion: Trouble with Multi-Branch Job)

Jenkins Job DSL Conversion: Trouble with Multi-Branch Job I'm currently working on converting a multi-branch Jenkins job into a Job DSL. Here's what I've written so far: multibranchPipelineJob('example') { branchSources { git { …
0
votes
0 answers

Jenkins: Using environment variables or secrets in Branch Sources section of a Multibranch Pipeline

I would like to use a global variable in Jenkins when deciding which branch to build. Something like this: Is this possible?
Ciri
  • 371
  • 1
  • 6
  • 19
0
votes
0 answers

In Jenkins, how do I set the initial build number of a project created by a Multibranch project?

I'm now using the Multibranch project type to build several branches in my Git repository without creating a project manually for each branch. This works well. However, when a new branch in Git causes a new project to be created, the first build…