Hi bob, my name is shiv I stay in Tampa are you coming to 16th April event in amateur works in Tampa let’s meet for collaborations and have more conversations.please let me know.
I have a project repository on Bitbucket with approximately 600 branches, including features and hotfix branches. I've recently created a new pipeline in Bitbucket to scan the code using SonarCloud. I've also created a bitbucket-pipelines.yml file in the master branch. My goal is to apply this pipeline configuration to all existing branches. Currently, the bitbucket-pipelines.yml file is only in the master branch. When I make changes in the master branch, the pipeline is triggered, but it doesn't trigger when I make changes in any other branch. Can you please provide a solution for this issue?
I have been trying to run the following but it keeps throwing an error saying No item named /var/lib/jenkins/workspace/jenkins-script/jenkinsMain found build job: "/var/lib/jenkins/workspace/jenkins-script/jenkinsMain", parameters: [ [ $class:'StringParameterValue',name: 'buildSteps',value: 'build/deploy'] ]
Thanks for the Nice video. May I know how to set environment/global variables so that they can be used across stages. I have used environment {} for static. To create dynamic enviroment variables I want to clarify what is the best way to do it.
Thanks for the video. I was banging my head because I was using the PAT that I had created for git which I only restricted to source control access only! Make sure the PAT you use has correct access!
Hi..thanks for the video. Is it possible to send a user input as a parameter from one pipeline to other instead of predefined jenkins variable build number
Go to the input section here www.jenkins.io/doc/book/pipeline/syntax/ take a look how you can catch the value and that value here, can be send to the other jenkins job as a parameter too. 😊
My requirement is : How can i use the Build_Number of Job1 in Job2? Job2 has to send a mail which has subject and it will display Job1 Build_Number Please Suggest?
@@DevBObs Thanks for your reply. In this case,Do these two jobs need parameter plugin or these can be independent, If so,can you provide some pipeline script also?
Hello! I would like to know if i want to create a subproject on the page using pipeline script how do i do it? Because for freestyle projects the downstream projects will be shown on the page but not for pipeline and i am currently using pipeline and i want to display the downstream project! Looking forward to your reply :)
@@DevBObs oh thank you for replying!! Is it because it has to be triggered by an upstream project for the Subproject section to appear? This was what i read online about the plugin!
Hi, Can you please help me on how can I attach my downstream job to my upstream pipeline Basically I want my pipeline (upstream job) should be integrated with the downstream job
Hi. Sorry i didn't get the question. This is actually what i am doing in the job. The job excution can be anything. Is your downstream job a pipeline too or simply a job?
@@DevBObs Basically my upstream job is triggering the downstream job and it ends there, from there my downstream job starts I want like my upstream should wait till the time my downstream job is completed
@@ravipremani6201 ok got it. You can add an extra property to the job definition. After propagate you can add wait: true. That will wait until downstream job finished.
@@DevBObs so when I kept the wait : true property it is waiting in the upstream job itself it is not going in the downstream job My upstream job takes max 2 seconds to complete
I followed the same steps and When I run the pipeline, I am getting an error message “##[error]unable to read data from the transport connection: connection reset by peer”. Could you please help on resolving this?
I will recommend taking a look at Ansible. You can execute Ansible with Jenkins but if that is the main goal. The right tool will be Ansible and there are multiple reasons why you should do it that way rather than over-complicating your solution with just Jenkins.
Great question. Same way you define an agent at root level, it is possible to do the same at stage level. Take a look at the documentation www.jenkins.io/doc/book/pipeline/syntax/#stage-level-agents
Hi Sir - Can you help me with how to sync two repositories with different regions. one repo used by some other team and one used by some other. Is there any script available to sync both same repositories? repo is bitbucket.
Try the git repository mirror. I don't think is a good solution because I think you are looking for both team using different repositories and keep both in sync right? I know you can do mirroring but if something is changed in the destination repo then the mirror is broken. That is a homework and pending task.
@@DevBObs basically both are repos are replica but only difference between repo 1 is used by dev team where they working dev related work and second repo is for selenium test project where test automation tam is writing the test cases.. So bottom line is to sync the code.. without doing manual stuff
How to decide during runtime on which stages to run in parallel...for example I pass the stage names in build with parameters and those stages only should run in parallel...please help with the solution
You can create a share library and make decision based on parameters. Keep in mind you can run a specific pipeline based on your inputs. You define both but you decide when to run which one.
I have tried this with ubuntu 20.04. I provide the url and the personal access token but it does not even try to connect. Any idea? the agent version I am using is V2.187.2. Thanks in advance.
Very nice ! Can we automate to repository changes of github to Azure git repository using Jenkins job. Please let me know if you have created any video on this.