Zip and archive folder/sub folders

2017-03-08 Thread 'Baswaraj Malage' via Jenkins Users
Hi Team I would like to know how to zip and archive folders/subfolders/*.png files in pipeline script. In my job workspace, I have a folder by name ScreenPrint which has 3 sub folders as chrome, firefox and phantom. Each sub folder would have .png files. So, I would like to zip and archive enti

Re: Interactive input with new DSL

2017-03-08 Thread suresh kumar
If we keep "agent none", pipeline input step wont occupy the any executor until the user approves or rejects. Is this current behavior like this? I will give a try some time today, this feature really required for my CD solution. We planning to move from freestyle projects to pipeline scripts.

Fault-tolerant build process using jenkins-pipeline

2017-03-08 Thread Alexander Drobst
I have an ant and shell script based build->deploy->test->uploadToRepository process for 50 modules. If one of the module fails it should not stop the whole process! Each of the module process except deploy step can work in parallel. Below is a small chart representing it: buildt

Re: Are you using Bitbucket Branch Source?

2017-03-08 Thread Peter Hayes
I just tried it out on a repo with 25 branches and I could see that the one branch I pushed to, it immediately started a build for that branch and then continued to check the other branches. I then pushed one of the other branches and it picked that up first and then continued to check the rem

Pipeline Model Definition from within a global shared library?

2017-03-08 Thread Tim Downey
Hi, Is it possible to run a pipeline model definition job from within a shared global library? I'm trying to take the whole pipeline model and extract it into a simple shared lib. I'm trying to take something like this: https://github.com/jenkins-infra/pipeline-library/blob/master/vars/buildP

Re: System Global variables in pipelines

2017-03-08 Thread Richard Ginga
thanks for the validation anyway. I use scripted pipelines at this time. There always seems to be 4-5 ways to get things done in Jenkins/groovy. just thought i'd missed one. On Wed, Mar 8, 2017 at 1:52 PM, Bill Dennis wrote: > I have found the same. There is an open jira for this here: > https:/

jenkins CLI command to resolve 'dependency errors loading some plugins"

2017-03-08 Thread Farrukh Najmi
Hi Guys, I am provisioning a server with Jenkins using Chef cookbook at https://supermarket.chef.io/cookbooks/jenkins On startup I see the following error which I can resolve using the UI. Is there a CLI command to do the resolve plugin dependency errors and restarting jenkins? TIA. There ar

System Global variables in pipelines

2017-03-08 Thread Bill Dennis
I have found the same. There is an open jira for this here: https://issues.jenkins-ci.org/browse/JENKINS-40455 Are you using declarative or scripted pipeline? In declarative, I have found I can reference env vars configured in Jenkins in the environment section to set up job level environment:

Are you using Bitbucket Branch Source?

2017-03-08 Thread Stephen Connolly
I have released 2.1.1-beta-1 into the experimental update center. This version has the super-awesome scoped event support. This should give very responsive branch creation directly after the commit creating the branch has been pushed. I plan to release 2.1.1 some time tomorrow. If you are using t

Build change history not shown.

2017-03-08 Thread 'David Brown' via Jenkins Users
I'm trying to pilot Jenkins 2.32.2 before upgrading our production system which is running v 1.651.3. Most of our jobs pull in from multiple Mercurial repositories, thus we are heavily reliant upon the Multiple SCMs Plugin. I'm facing an issue in Jenkins 2.32.2 in that the build change history

multibranch pipeline github scm context

2017-03-08 Thread Arvind Jayaprakash
I'd like find out the following things from a multibranch pipeline script associated with a github scm provider - Is this build happening for a branch or a pull request? - If it is for a pull request, then I need to know these as well - Commit-id of the tip of pull request - Com

System Global variables in pipelines

2017-03-08 Thread Richard Ginga
I have some logic in some stages the use System Global variables. I find that they are only available to the code within a node { } block. I have tried using env.variable, ${env.variable} and anything else I can find short of importing Jenkins.* and using methods there. what am I missing? Is there

Re: challenge in providing developer access for Jenkins user

2017-03-08 Thread Richard Ginga
Arnab, with Role-based authorization plugin you can configure access and visibility for any one or any group to any job or set of jobs using regex On Wed, Mar 8, 2017 at 3:21 AM, arnab ghosh wrote: > Hi all, > I am providing user access to developers who should deploy their codes > using Jenkins

Re: Is there any way for a jenkins project to use the Gitlab plugin but only be built periodically and not when a change is pushed?

2017-03-08 Thread Oded Badt
Solved: Under Advanced -> Behaviors -> Add -> *Don't trigger buiuld on commit notifications* On Monday, March 6, 2017 at 2:46:14 PM UTC+2, Oded Badt wrote: > > Here is my config xml file > > Thanks! >Oded > > On Thu, Mar 2, 2017 at 5:01 PM, suresh kumar wrote: > >> Could you share the full c

Re: What is the freestyle "inject environment variables" equivalent inside blue ocean pipelines?

2017-03-08 Thread Bill Dennis
Just some other things I thought of - If you use the credentials file feature you can put all those sensitive properties in a properties file stored as 'jenkins credentials'. Then pull that props file into your workspace using 'withCredentials' in the pipeline. Next thing is to grab the pipel

What is the freestyle "inject environment variables" equivalent inside blue ocean pipelines?

2017-03-08 Thread Bill Dennis
If you put the pipeline / branch jobs inside a folder, you can scope the credentials to just that folder. Pretty sure that is available in Jenkins OSS and not just Enterprise - you need the CloudBees Folders plugin. Have a look on here, it might have some clues: https://support.cloudbees.com/hc

challenge in providing developer access for Jenkins user

2017-03-08 Thread arnab ghosh
Hi all, I am providing user access to developers who should deploy their codes using Jenkins. I have created a Tester group; which has privilege to create Job, Edit job and execute job. The problem is : even after providing this role; the user is able to see all the jobs created; and can edit a