All Questions
6 questions
1
vote
1
answer
8k
views
Jenkinsfile and env.GIT_BRANCH
I have a Jenkinsfile that uses a branching strategy.
I have an if statement in every stage.
My release/* conditional is not working. I want to have any release/* branches deployed to a staging env.
...
5
votes
2
answers
4k
views
How to pass custom parameters to jenkins job (multibranch pipeline) on git push?
I have created the multibranch pipeline and using the jenkinsfile, jenkins created set of pipelines for each branches.
Is there a way to pass custom job parameters and trigger jenkins job with ...
0
votes
1
answer
733
views
Jenkins build based on selected branch from git
I have created a jenkins file that will list the branches from the git repository. It will be shown in choice. What is need to do is that, I must build the selected branch only.
I have used the ...
94
votes
14
answers
274k
views
Get git branch name in Jenkins Pipeline/Jenkinsfile
I've create a jenkins pipeline and it is pulling the pipeline script from scm.
I set the branch specifier to 'all', so it builds on any change to any branch.
How do I access the branch name causing ...
6
votes
1
answer
6k
views
Jenkins pipeline - git branch
I am writing pipeline script in order to implement continuous integration flow in our project. The process is for users to do work in a specific branch that follows naming convention, test_id1, ...
5
votes
1
answer
5k
views
Jenkins Multibranch Pipelines - Configuring properties in branches?
We have successfully set up a build pipeline using the Jenkins Multibranch Pipeline Plugin, which works great most of the time, but we have this problem which nags us: The Jenkinsfile contains a set ...