Help needed with setting up credentials for Bitbucket-branch-source-plugin

2020-07-23 Thread Ashish Sharma
Dear community, I need help in understanding how setting up credentials work for this plugin. Does this require system admin level username / password or any user credentials (who has read access on repo) can be provided. Also any limitations on what kind of directory that user is coming from?

Re: Help needed with setting up credentials for Bitbucket-branch-source-plugin

2020-07-26 Thread Ashish Sharma
access if you want Jenkins to setup the hooks > automatically). > > If that's not working then you'll need to be a bit clearer about the error > that you are getting as it could be a number of things. > > Richard. > > On Fri, 24 Jul 2020 at 04:56, Ashish Sharma &g

Declarative pipeline - Call another Jenkinsfile from pipeline script

2020-09-07 Thread Ashish Sharma
Dear All, Below is our usecase (using declarative script): - We have a small pipeline script (Jenkinsfile) which will do sanity, tests & lint check on every feature branch and pull requests - Then we have another script (Jenkinsfile) which is superset which will additionally build a

Re: Declarative pipeline - Call another Jenkinsfile from pipeline script

2020-09-08 Thread Ashish Sharma
Thanks both, let us explore the suggested options. Stay safe. Cheers. On Tue, 8 Sep 2020 at 11:19 PM, Gian Maxera wrote: > > I agree with Saravanan ... and I would also add that there are other two > Jenkins features we use for your case. > The approach we follow is: > - first we try with "when"

How to share (non-secret) variables between jobs

2020-09-09 Thread Ashish Sharma
Dear All, We have a bunch of jobs which will use some common variables like user names, urls etc (which are not secrets or credentials). Is there a way (or plugin maybe) to share these variables between jobs (something like credentials plugin for secrets). TIA, Ashish -- You received this me

Re: How to share (non-secret) variables between jobs

2020-09-09 Thread Ashish Sharma
string(name: 'param1', value: "value1") > ] > } > } > > > > /BR > John > > On Thu, 10 Sep, 2020, 6:17 am Ashish Sharma, wrote: > >> Dear All, >> >> We have a bunch of jobs which will use some common variables like

Re: How to share (non-secret) variables between jobs

2020-09-11 Thread Ashish Sharma
Thanks All, we are now saving these variables in shared groovy files and loading file in job pipeline to read variables. On Thursday, September 10, 2020 at 2:44:11 PM UTC+8 Gianluca wrote: > You could maybe use > https://www.jenkins.io/doc/book/pipeline/shared-libraries/ and load those > vari

Jenkins with MacOS Agent - iOS app ARCHIVE FAILED error

2020-09-16 Thread Ashish Sharma
Hi All, We are facing an issue while building iOS app using mac agent for jenkins. We are using fastlane to build app. App is building properly if we connect our agent directly by* launching agent jnlp file (connect using browser option)*. However it fails and give "** ARCHIVE FAILED**"

master to agent connection keeps breaking every 3-4 hours

2020-09-29 Thread Ashish Sharma
Hi Team, We are using JNLP to connect Mac agent to Linux master node. Jenkins agent keeps disconnecting frequently, and we are getting below logs in master. Can you please suggest how to resolve this? What are the steps to further triage the same. Some of the questions we are trying to answe

Re: master to agent connection keeps breaking every 3-4 hours

2020-09-29 Thread Ashish Sharma
Thanks, are these setting to be applied on master side or slave or both? On Wednesday, September 30, 2020 at 12:15:23 AM UTC+8 kuisat...@gmail.com wrote: > >- Why does agent tries to connect to master when its already connected? > > That suggests half-closed connections, it means that the ag

Re: master to agent connection keeps breaking every 3-4 hours

2020-11-03 Thread Ashish Sharma
We have tried putting these on both side, but still facing same issue :( On Thursday, October 1, 2020 at 1:33:57 AM UTC+8 kuisat...@gmail.com wrote: > ideally, on both sides, make it on one side usually is enough. > > El miƩrcoles, 30 de septiembre de 2020 a las 3:22:00 UTC+2, > ashish...@gmail

Query regarding Organization Folder Events

2021-02-09 Thread Ashish Sharma
Dear Community, We are using below: - Cloudbees Core (Jenkins) 2.235.1 - BitBucket Branch Source plugin - BitBucket Data Center 6.10.4 We have a query regarding Organization Folder Events page. We are not able to fully comprehend which events are logged in this page. It is quite

Intermittent Error during unstash operation

2021-02-25 Thread Ashish Sharma
Hi All, We are getting intermittent error during unstash operation. We are using kubernetes agents, and stash is done in a diff agent, and now trying to unstash in another agent/container. Any suggestions on this? Getting this just 1/10 times, with same config / settings. *java.io.IOException

Jenkins Shared Libraries vs Cloudbees Pipeline Templates

2021-02-27 Thread Ashish Sharma
Hello Community, As we move towards standardizing pipeline code across various project teams and repo, we are looking to use common reusable code for pipeline. Since we are using cloudbees core, we have access to cloudbees pipeline templates / catalogue as well. Do we have any suggestions on u

BitBucket Branch Source - Create Exception for one specific Repository

2021-03-08 Thread Ashish Sharma
Hi All, Is it possible to add some exception cases for a specific repository in BitBucket Org folder (provided by BitBucket branch source). Our Usecase: We want to create develop branch pipelines for all repositories, except one. Is it possible using the same Org folder. Trying to avoid creati

Kubernetes Plugin - Running more than one agent of a pod template concurrently

2023-09-01 Thread Ashish Sharma
Dear All, We are using kubernetes plugin to spawn new agents for build jobs. We want to ensure that multiple agent pods are running for build stages (which take a while to run and complete). However we notice that only a single agent pod is active at a time. - First job is active, and create a p