Re: Converting to pipeline questions

2019-08-21 Thread Louis Elston
Installed Eclipse and https://marketplace.eclipse.org/content/jenkins-editor, and can edit Declarative scripts (regular pipeline job, not Blue Ocean MultiBranch job). Storing the Jenkinsfile in SCM, but naming it different (ex: Jenkinsfile9-2), so this way if anyone does create a MultiBranch p

Re: Converting to pipeline questions

2019-08-16 Thread Louis Elston
Currently (in the classic\non pipeline jobs), when a product version is released, we disable that job (ex productversionv1), and copy the job to productversionv2 and set the job parameters for the correct branch to use. Occasionally we do need to do a fix in v1, so it is just a matter of ena

Re: Converting to pipeline questions

2019-08-15 Thread Mark Waite
On Thu, Aug 15, 2019 at 12:20 PM Louis Elston wrote: > In Blue Ocean, if you create a new pipeline, and there is a Jenkinsfile in > any branch in that repository, when you select “Create Pipeline”, it will > execute the Jenkinsfile in each of those branches. At this point, there is > no ability

Re: Converting to pipeline questions

2019-08-15 Thread Louis Elston
In Blue Ocean, if you create a new pipeline, and there is a Jenkinsfile in any branch in that repository, when you select “Create Pipeline”, it will execute the Jenkinsfile in each of those branches. At this point, there is no ability to Configure anything. Yes, if you then configure that new

Re: Converting to pipeline questions

2019-08-15 Thread Mark Waite
On Wednesday, August 14, 2019 at 1:34:10 PM UTC-7, Louis Elston wrote: > > " build only the branches that you specify.". I am assuming that this is > something in the script that does this, as when creating the MultiBranch > job, I see no option to allow for the selection of doing executing th

Re: Converting to pipeline questions

2019-08-14 Thread Louis Elston
" build only the branches that you specify.". I am assuming that this is something in the script that does this, as when creating the MultiBranch job, I see no option to allow for the selection of doing executing the job for only one branch. Not to harp on the documentation, but if this can be

Re: Converting to pipeline questions

2019-08-14 Thread Mark Waite
On Wed, Aug 14, 2019 at 8:36 AM Louis Elston wrote: > This morning, I basically did what you just recommended. I created a new > Pipeline job (not using Blue Ocean), selected "Pipeline Script from SCM', > and pointed to the Jenkinsfile that I had created yesterday in the master > branch. Becaus

Re: Converting to pipeline questions

2019-08-14 Thread Louis Elston
This morning, I basically did what you just recommended. I created a new Pipeline job (not using Blue Ocean), selected "Pipeline Script from SCM', and pointed to the Jenkinsfile that I had created yesterday in the master branch. Because this job is not a MultiBranch job, even thought you can

Re: Converting to pipeline questions

2019-08-14 Thread Mark Waite
Thanks also for detecting that issue. The documentation does say that local repositories are supported. I was wrong. However, there are important limitations with local repositories that make them a poor choice for any user and an especially poor choice for first time users. I've submitted h

Re: Converting to pipeline questions

2019-08-14 Thread Mark Waite
When you used those steps in Blue Ocean, you defined a Pipeline in the branch where the Jenkinsfile was stored by Blue Ocean. I think that is what you wanted in the SCM repository. You're correct that Blue Ocean created a multibranch pipeline as part of that editing process. If you'd like a j

Re: Converting to pipeline questions

2019-08-13 Thread Louis Elston
Mark Wrote..."Blue Ocean is not limited to multibranch Pipelines. You can use the Blue Ocean editor to create a Pipeline in a git repository that has no Jenkinsfile on any branch." Can someone point me to an example of this? I have a GitHub repository with a master branch and a branch1 branch

Re: Converting to pipeline questions

2019-08-06 Thread Louis Elston
I guess that either I misread this page, or it is out of date already... https://jenkins.io/doc/book/blueocean/creating-pipelines/ . It says "You now need to specify a local or a remote

Re: Converting to pipeline questions

2019-08-06 Thread Mark Waite
On Tue, Aug 6, 2019 at 9:36 AM Louis Elston wrote: > I believe that this is a bug. What do I need to do to either get > comments, or action on this? > > I believe it is not a bug. Blue Ocean is not designed, tested, or expected to work with a git repository on a local file system. It is design

Re: Converting to pipeline questions

2019-08-06 Thread Louis Elston
I believe that this is a bug. What do I need to do to either get comments, or action on this? On Thursday, August 1, 2019 at 5:05:02 PM UTC-4, Louis Elston wrote: > > Studying and playing with pipelines. I see that you can use Declarative > in the Pipeline Scrip window, but it still stores it

Re: Converting to pipeline questions

2019-07-30 Thread Jordan Sokolic
Louis, To answer your last question, if you decide to use declarative pipelines in the end you can use the built-in tools like the declarative directive generator and snippet generator. They will provide much the same UI as a classic freestyle project which you configure according to your needs

Re: Converting to pipeline questions

2019-07-29 Thread jeremy mordkoff
My personal advice is to pick declarative or scripted pipelines and stick to that everywhere. Switching back and forth always leads to mistakes. And so keeping the Jenkinsfiles in source control is huge plus and I would never go back to putting any logic inside my jenkins job config. Why are y