Pipeline with tests and deployment

2017-02-28 Thread Bert
Hello everyone, We recently switched to the declarative pipeline approach. The current pipeline is very simple: 1. Build 2. Setup test server 3. Run integration tests 4. Post: Gather test results No I would like to ad

Re: GitHub Org/Repo/Branch job cannot poll multiple repos? Missing PollSCM at Org / cannot edit PollSCM at branch

2017-02-28 Thread Justin Vallon
I'm talking about PollSCM that enables incoming commit-hooks to trigger the launching of jobs, not "poll scm every 5 minutes". If the Jenkinsfile does an explicit checkout, can't the job record the dependent URLs, and rescan those? I am not asking for a general configuration solution at the job l

Re: I got some dependency errors after upgrade to the new version.

2017-02-28 Thread Jason Yu
Yes, I resolved it by upgrade the script security plugin. You need to upgrade this plugin separately in the first place before you upgrade other plugins. Don't upgrade it with others. Seems like upgrading Script Security to 1.21 or newer should fix most of these. It's sort of a flattened tree and

Run Shell Scripts Added to/Changed in a Project?

2017-02-28 Thread Christopher O'Grady
I'm currently working on automating deployments of our mongodb shell scripts when we have database updates in a release. I am fairly new to Jenkins. I was wondering if anybody has experience getting Jenkins to run only new or updated scripts in a folder? My current idea is that Jenkins would (a

Re: GitHub Org/Repo/Branch job cannot poll multiple repos? Missing PollSCM at Org / cannot edit PollSCM at branch

2017-02-28 Thread Stephen Connolly
Multibranch is designed to remove the need for individual jobs to poll. When a scan is performed, we get - in one set of requests - all the head revisions and then trigger builds for all branches with changes. This reduces the impact of many jobs polling. Additionally events are consolidated on a

Re: Strategy for plugin updates

2017-02-28 Thread Mark Waite
The update center provides a facility that allows you to roll back one version of a plugin. Since you're likely already aware of that, I assume you want to rollback to a prior state. The SCM sync configuration plugin https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin allows

Recommending for cleaning up old builds when multibranch pipeline is in use?

2017-02-28 Thread Mark Stosberg
For cleaning up old builds, the "Discard Old Builds" plugin is recommended: https://wiki.jenkins-ci.org/display/JENKINS/Discard+Old+Build+plugin However, the instructions for reference a "post build" step which doesn't exist in the Configure interface for Multibranch Pipeline projects. What's

Re: Moving PIpeline global libraries to external SCM

2017-02-28 Thread Owen Mehegan
Thanks! On Tue, Feb 28, 2017 at 12:03 AM, Adrien Lecharpentier < adrien.lecharpent...@gmail.com> wrote: > Once you have"copied" the repo, you can delete the internal repository. > That would remove all possible errors. > > Le mar. 28 févr. 2017 à 00:30, Owen Mehegan a écrit : > >> Yeah, that's a

Strategy for plugin updates

2017-02-28 Thread Sam K
Hi I've been a administering Jenkins for about 2 - 3 years now. What I've come across several times is that while updates to the Jenkins core go fairly smoothly, the plugins update don't. After the recent security related mandatory update from 2.40 -> 2.45, while the core behaves fine, a pl

GitHub Org/Repo/Branch job cannot poll multiple repos? Missing PollSCM at Org / cannot edit PollSCM at branch

2017-02-28 Thread justin49826
I am able to create a Pipeline job, and have the job do a git clone of two repos. When there are commits in either repo, the job is triggered. However, I cannot get this to work with GitHub Org Folder / Repo / Branch. The job is only triggered when the repo/branch is modified, despite it chec

Problem setting upstream repository URL

2017-02-28 Thread Vinoth Shepard
Started by user Vinoth Ravi Building in workspace C:\Program Files (x86)\Jenkins\workspace\JunitTest > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url > https://github

Re: Disabling Jenkins security during chef provisioning

2017-02-28 Thread Farrukh Najmi
Confirming that "setting the system property jenkins.install.runSetupWizard to false" did the trick for me. Thanks very much Daniel Beck for helping me out. On Mon, Feb 27, 2017 at 1:28 PM, Daniel Beck wrote: > Try setting the system property jenkins.install.runSetupWizard to false. > > https://

Re: How to access Jenkins server using Python Or JenkinsApi for Windows

2017-02-28 Thread Eric Pyle
It's the same on Windows or Linux. If you look in your Python scripts directory, usually something like C:\Python35\scripts (for Python 3.5), you should find package install tools like pip or easy_install. You may need to give the full path to the executable, so "C:\Python35\scripts\pip install

Delete workspace relative to matrix configuration

2017-02-28 Thread Romaric Crailox
Hello, Say me if I wrong but I don't see anything to delete a part of a Jenkins job's workspace relative to matrix configuration. If "Delete workspace before build starts" option is checked, you can't configure it to delete only the part of the workspace corresponding of only one value of an us

Re: Commit Changes from Global Pipeline Libraries Polluting History

2017-02-28 Thread Elmar Weber
Hello everyone, thanks for the feedback, it make sense. I agree that an indication / grouping by repo would solve the issue as well. Main reason it is confusing is because it's not clear what triggered the build here, you have to dig a bit to figure it out. I'll summarize this and post it as a

JNLP - Moving from random to fixed ports

2017-02-28 Thread Daniel Becroft
Hey guys, We are currently running multiple build nodes configured just with a Random TCP port for JNLP communication. Due to firewall rules now, we need to move to a fixed port. Is there anything special about moving from random to fixed? Do I need to stop all the nodes at the same time, change t

Re: Moving PIpeline global libraries to external SCM

2017-02-28 Thread Adrien Lecharpentier
Once you have"copied" the repo, you can delete the internal repository. That would remove all possible errors. Le mar. 28 févr. 2017 à 00:30, Owen Mehegan a écrit : > Yeah, that's a good point. But I just wanted to make sure I don't cause > collisions by having the same classes in the internal a

Re: How to remove the deleted branch names from "build with parameters"

2017-02-28 Thread Adrien Lecharpentier
Hi, The orphan branch strategy is for the multibranch kind of job. What is missing for us here is how do you populate the name of the branches in the build parameters? This is not automatically done so you must have either a static list or a groovy script. Please review your job configuration. -