Re: Anyway to programatically update a Jenkinsfile?

2019-10-03 Thread Tim Black
I have to agree with Jeremy on this. Using a templating engine like m4 or jinja2 is superior to programmatic generation of groovy, if you need to do it on the fly. Why? Simplicity and Readability. I inherited a build system that is based on using a multibranch pipeline with a Jenkinsfile that

stash/unstash file size limit and performance

2019-10-03 Thread Tim Black
The Jenkins documentation for the stash pipeline step says that it's only to be used for "small files", with no explanation why. Specifically, how is stash bad for large, i.e. not

problems changing triggers{} in multibranch pipeline Jenkinsfile

2019-10-03 Thread Tim Black
We have a multibranch pipeline job set up to scan a git repo (which contains Jenkinsfile at its root) for branches and create branch-specific jobs for each branch discovered. The Jenkinsfile on a branch specifies: triggers { cron('@midnight') } and this indeed runs nightly at

Re: Clean useless files and directories

2019-10-03 Thread ZillaYT
You mean multi-branch "pipeline" jobs? In the job config page, Orphaned Strategy section, you check the "Discard old items" check box. On Monday, September 30, 2019 at 11:18:13 AM UTC-4, Peter Flanagan wrote: > > Hello, > working on Jenkins 2.150 hosted on on AWS-EC2, jenkins_home dir is located

Re: Triggering multi Pipeline Job after other multi job is executed

2019-10-03 Thread Jan Monterrubio
I’ve done something similar with the build step, as a downstream job. https://jenkins.io/doc/pipeline/steps/pipeline-build-step/ On Thu, Oct 3, 2019 at 05:46 Ramesh R wrote: > Hi All, > > Please help me with this Problem. > > I want to RUN or Build Project B after Project A is Build or

Why Jenkins is keep removing workspaces folder on slave Nodes in 30 days. I have not configured any setting for this ?

2019-10-03 Thread Pranav Kumar
Jenkins is deleting workspaces on slave machines after 30 days. After looking into jenkins folder located at /var/lib/jenkins/logs/tasks I found logs here with name Workspace\ clean-up.log. Why this is being created?, I suspect it may be because of

Sharing code via shared library?

2019-10-03 Thread ZillaYT
I posted In a Jenkins shared library infrastructure, how do I import class in another file? in Stackoverflow. Anyone here know if what I want to

Re: Triggering multi Pipeline Job after other multi job is executed

2019-10-03 Thread ZillaYT
That's how you do it. On Thursday, October 3, 2019 at 6:46:52 AM UTC-4, Ramesh R wrote: > > Hi All, > > Please help me with this Problem. > > I want to RUN or Build Project B after Project A is Build or Stable. > > In Freestyle project we have option to Build after other projects are > built in

Re: 'Include' a shared library pipeline in other pipelines in the same shared library

2019-10-03 Thread ZillaYT
I'm guessing you've looked at this already https://jenkins.io/blog/2017/10/02/pipeline-templates-with-shared-libraries/ On Monday, September 30, 2019 at 3:35:30 AM UTC-4, Kaliyug Antagonist wrote: > > I have several microservices which use the same pipeline from a shared > library

Re: Ansible Playbook using Jenkins

2019-10-03 Thread ZillaYT
There's a nice Ansible plugin for Jenkins On Tuesday, September 24, 2019 at 9:32:02 AM UTC-4, Vikrant Kaushik wrote: > > Hi All, > > Can anybody advise how to run Ansible playbook using Jenkins if we have > any relevant link available? > > regards > > Vikrant > -- You received this message