Re: Jenkins 2.0 pipeline as code executor question

2017-05-11 Thread Marslo Jiao
Hi Cuong, There's no any other files created outside of workspace. I'm looking for the why the *# of executor* was set as* 2*, but multiple jobs running on this node. I think it should be the issue of Jenkins. On Friday, May 12, 2017 at 12:18:09 AM UTC+8, Cuong Tran wrote: > > Hi, > > What I me

Re: Jenkins 2.0 pipeline as code executor question

2017-05-11 Thread Marslo Jiao
Hi Björn, This job is about to build an app based on iOS. During the app building. The conflict, for example is, there's a key need to be installed like: security unlock-keychain -p xxx.keychain security import -k xxx.keychain -t priv -f pkcs12 -A -P < LOGIN_PWD> The key will be unlock once an

Re: Jenkins credentials binding

2017-05-11 Thread Mark Waite
That seems to come from the https://github.com/jenkinsci/plain-credentials-plugin . Have you installed the plain-credentials-plugin into your Jenkins? Mark Waite On Thu, May 11, 2017 at 10:38 PM Subramanyeswari Ravinutala < sravi...@gmail.com> wrote: > Hi, > > I am getting the below error on im

Jenkins credentials binding

2017-05-11 Thread Subramanyeswari Ravinutala
Hi, I am getting the below error on implementing the groovy script. /var/jenkins_home/workspace/Automate_IT/ClearCase_Job_DSL/jenkins/job-dsl/ClearCaseBuilds.groovy: 8: unable to resolve class org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl.DescriptorImpl @ line 8, column 1.

Re: How do I set env variable to currentBuild property in declarative pipeline environment.

2017-05-11 Thread Dan Tran
I am on the same boat, need to set an env var during built to be picked up by emailExt jelly template. Would this work? agent set the env, master sends mail with env token replacement? Thanks -Dan On Thursday, May 11, 2017 at 1:46:20 PM UTC-7, JG wrote: > > Thanks! This is working for me. How

Re: How do I set env variable to currentBuild property in declarative pipeline environment.

2017-05-11 Thread JG
Thanks! This is working for me. However contrary to your comment about parameters and environment, I am able to set a variable in environment block referencing the value of a parameter. It's only when I included the ${currentBuild} reference that it wouldn't set the variable. On Wednesday, May

Re: Is it possible for a log to be generated that lists which Jenkins Plugins were active during a build?

2017-05-11 Thread Mark Waite
I don't think the list of plugins used by a build will really satisfy your request. There are very useful plugins which are not used by any build. The thin backup plugin and the configuration slicing plugin are two plugins which are examples of plugins that are likely not referenced in a job, yet

Re: How to get started with Blue Ocean for Subversion user?

2017-05-11 Thread Mark Waite
Reply is inline On Thu, May 11, 2017 at 11:03 AM David Aldrich wrote: > Hi Mark > > > > Thanks for your reply. Do you not end up putting sensitive data on GitHub > such as credentials? > > No, the identifier of the credential is placed inside the job, but the credential itself is kept safely s

Re: Build Monitor Plugin

2017-05-11 Thread Victor Martinez
Some ideas, based on some plugins and CLI/API commands: - https://wiki.jenkins-ci.org/display/JENKINS/Build+Publisher+Plugin Therefore you could publish build from Server A to Server B and be able to monitor it from Server B since those jobs will be duplicated in Server B. - https://wiki.jenkin

Re: Manual step stage on BlueOcean/Jenkins2 pipeline

2017-05-11 Thread Kevin Burnett
use the input step , like this: timeout(time: 5, unit: 'DAYS') { input message: 'Approve deployment?' } it's helpful to wrap it in a timeout, so eventually the pipeline will stop (fail) if no one approves i

RE: How to get started with Blue Ocean for Subversion user?

2017-05-11 Thread David Aldrich
Hi Mark Thanks for your reply. Do you not end up putting sensitive data on GitHub such as credentials? David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mark Waite Sent: 11 May 2017 17:57 To: jenkinsci-users@googlegroups.com Subject: Re: How t

Re: How to get started with Blue Ocean for Subversion user?

2017-05-11 Thread Mark Waite
You can create the pipeline definition in a girhub repo with a branch per Jenkinsfile. The Jenkinsfile can reference your subversion repository. I've used that technique with scripted pipeline, so I think it should work with declarative pipeline. Probably best to use github rather than hosting yo

How to get started with Blue Ocean for Subversion user?

2017-05-11 Thread David Aldrich
Hi I am finding it difficult to construct declarative pipelines as code, so I want to try out Blue Ocean to construct them graphically. However, we store our project repositories in Subversion not Git. Blue Ocean wants a Git repository or GitHub. I can't use the latter because our IT policy

Re: Jenkins 2.0 pipeline as code executor question

2017-05-11 Thread Cuong Tran
Hi, What I meant is to you should update your build script so it doesn't create files outside of the build workspace or anything that would prevent it to run concurrently. For example, this creates file inside your workspace and can run on multi-executor slave without any issue: stage { sh

Is it possible for a log to be generated that lists which Jenkins Plugins were active during a build?

2017-05-11 Thread Robert Kruck
*Is there a Jenkins Plugin that can create a log that lists which Jenkins Plugins were active during a build?* This would make it possible for our team to detect which Jenkins Plugins are not being used, and could therefore be safely deleted. Also, if the Jenkins plugins active during a build d

Re: Jenkins IIS Reverse Proxy

2017-05-11 Thread Terry Lacy
Since there doesn't seem to be a solution to this, would y'all advise that I post a bug report? Terry On Wednesday, May 3, 2017 at 12:45:40 PM UTC-6, Terry Lacy wrote: > > Okay, we verified that ipv6 was disabled on the network interface. We also > changed the IIS reverse proxy to point to "127

Manual step stage on BlueOcean/Jenkins2 pipeline

2017-05-11 Thread Thiago Carvalho Davila
Hello, I am migrating my old pipelines to pipeline as code of Jenkins2. I've been strugling to make manual step stages like stage('Deploy-Production'){}. It is autoexecuted if I just put it in the pipeline{}. What is the best practice here? Is there native support to manual step? Thanks, Thia

Re: Accessing workspace from WebUI in a multi-branch pipeline project

2017-05-11 Thread Ewgenij Gawrilow
Yes, this makes sense. There is indeed a workspace link in the node allocation step page. Actually, in my case the whole pipeline runs on a single node in the same workspace, with several stages executed in different Docker containers. So it would be nice to smuggle a "shortcut link" to the w

RE: Accessing workspace from WebUI in a multi-branch pipeline project

2017-05-11 Thread Daniel Butler
Hello, If you have a look in the Pipeline Steps each instance of “Allocate Node : Start” will have a link to the workspace used for that node block. Cheers, Daniel. From: Ewgenij Gawrilow Sent: 11 May 2017 14:32 To: Jenkins Users Subject: Accessing workspace from WebUI in a multi-branch pipeli

Displaying the labels in the matrix for a multiconfiguration project

2017-05-11 Thread Sébastien Hinderer
Dear all, Consider a multiconfiguratin project with two axes: one for slaves and one for a feature that can be either enabled or disabled. For the moment, I have encoded the feature axis with a label named "feature" which can take the two values "true" and "false". In Jenkins' user interface, th

Re: Jenkins 2.0 pipeline as code executor question

2017-05-11 Thread 'Björn Pedersen' via Jenkins Users
Hi, what kind of ressource conflict is happening? If some part of your build opens a tcp port, then conflicts may be resolved by using the port allocator plugin. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from th

Re: Accessing workspace from WebUI in a multi-branch pipeline project

2017-05-11 Thread 'Björn Pedersen' via Jenkins Users
Hi, if you have take a look at the pipeline steps (left menu on a job), then you will find the workspace links on each node and ws step there. As Mark correctly mentionend, there will be a workspace for each of these steps. Björn -- You received this message because you are subscribed

Declarative Pipeline - Variables and functions are no longer binding in a when/expression since version 1.1

2017-05-11 Thread Erik Serating
So this was working fine before Pipeline Model Definition version 1.1. == *#!/usr/bin/env groovy* *def SKIP_BUILD = false* *pipeline {* *stages {* *stage('build') {* *when {* *expression {* *return !SKIP_BUILD

Re: Accessing workspace from WebUI in a multi-branch pipeline project

2017-05-11 Thread Mark Waite
On Thu, May 11, 2017 at 7:32 AM Ewgenij Gawrilow < ewgenij.gawri...@o2online.de> wrote: > Hello, > > In a "classic" freestyle project, one can easily browse the workspace, > download it as an archive, or wipe it out with a mouse click. > > However, in a multi-branch pipeline project defined by a J

Accessing workspace from WebUI in a multi-branch pipeline project

2017-05-11 Thread Ewgenij Gawrilow
Hello, In a "classic" freestyle project, one can easily browse the workspace, download it as an archive, or wipe it out with a mouse click. However, in a multi-branch pipeline project defined by a Jenkinsfile from SCM I've concocted recently, I don't see the "Workspace" menu item anywhere, nei