Certificate Credentials Binding: How to use

2019-04-30 Thread anthony . charles . green
I've been unable to find instructions on how to use the certificate setting 
with the credentials binding plugin. Selecting certificate gives you 4 
fields: Keystore Variable, Password Variable, Alias Variable and 
Credentials. Credentials presents a dropdown menu allowing you to select a 
certificate from Jenkins Credentials Store.
I'm trying to test its use with a simple execute shell build step that 
calls curl on an API that requires you to present a certificate.
Advice?
TIA
Anthony


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d92d3ad7-8f13-46fc-aa92-01d1b42aaf6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins - Tagging a branch/tag to multiple release users

2019-04-30 Thread Adarsh V
Hi, 

We are using Jenkins to build and release our projects. We have various 
branches and tags configured as Jenkins jobs and we release these to 
multiple clients. A branch can have more than one client. Is there a way to 
tag a branch to a set of clients and view the same info on a dashboard or 
something? Our requirement is that we need a dashboard which on one look 
lets us know which branch/tag a particular client is using and which was 
his/her last Jenkins build as well. We have tried all the dashboard types 
Jenkins provides - but these do not seem to match our requirements. Any 
leads on this appreciated. We are okay with a solution from Jenkins end or 
even using a external tool that integrates with Jenkins.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eab1e6fe-156d-4eb0-a38e-87108df2528d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Programmatically create Jenkins dashboard view

2019-04-30 Thread Nick Stolwijk
You can create views with the JobDSL [1].

[1]
https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.views.NestedView.views

Hth,

Nick Stolwijk

~~~ Try to leave this world a little better than you found it and, when
your turn comes to die, you can die happy in feeling that at any rate you
have not wasted your time but have done your best ~~~

Lord Baden-Powell


On Tue, Apr 30, 2019 at 8:20 AM Faad Sayaou  wrote:

> Hi everyone,
> I have several dashboard views and I would like to know if there is a
> possibility of creating these views using groovy script?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/908e3da1-b3da-4683-b620-732f363fd609%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAA9S6i6nMH6unEBWdYCE%2B3ddcSUwqm_hY9hWAC8NjuEGovsZ6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Odd environment problem with git under Jenkins on AIX

2019-04-30 Thread Rich Stephens
Mark,

I am sincerely sorry if my sense of humor offended.   I'm not sure why you 
thought I was determined to proceed on any particular path.   I was willing 
to try the master/slave route as you suggested, and I asked a further 
question as to whether I would end up having the same problem on the slave 
- then I utterly failed to comprehend your answer.   My joke was at my own 
expense and my own failure to get what you were saying.

I sincerely appreciate your efforts to assist me.

I no longer require any help on this particular topic, however, since I 
have since been able to bypass the problem by using the "JGit" mode of the 
git plugin, which does not have the problem and has worked well so far.  
Although I _am_ having one odd Java error getting thrown at the end of my 
builds (I have created a different post on this topic).   I have no idea if 
the problem would have happened using the native git open of the git 
plugin, or whether it's related to the JGit option, since I never got that 
far before.

As for my experiences using Jenkins master(s) on AIX, it is limited to this 
one machine, for the last 7 years.   It has been working fine using Java 
1.6 and Jenkins 1.5(something?) for all of that.  It was using Mercurial as 
its source repository, and our Mercural server is being retired, so I was 
mandated to move my source code to git.   I then had to go through the 
process of upgrading Jenkins and Java so I could use the git plugin.  Thus 
begins my sad tale.

As for OpenJDK, that was actually my first choice for upgrading.  I 
searched all over the OpenJDK website for a link to a download for their 
JDK8 for AIX, and could not find it.  The page I _did_ find, however, 
mentioned that OpenJDK8 supports AIX 7.1 and later.  The machine I am 
working with is on AIX 6.1, and thus could not use the OpenJDK8 port for 
AIX even if I could have found it.   I cannot upgrade this machine to AIX 
7.1.  I have to remain compatible to support AIX 6.1 because the software 
it is compiling is a legacy product for which my company still gets a 
decent amount of license revenue.

I would be happy to join the platform group, though I am not sure of what 
assistance I might be.  While I have used Jenkins on Linux, AIX, HPUX, and 
Windows, my experience is limited to simple master setups building a legacy 
C/C++ project.

Again, thank you for your assistance.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c458b5e6-71aa-48a7-8fc9-cbdf4bcea6c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins JUnit Plugin - Unstable issues

2019-04-30 Thread Ullrich Hafner


> Am 29.04.2019 um 22:25 schrieb cliffhanger...@gmail.com:
> 
> JUnit is defintiely setting the build status to UNSTABLE when the only test 
> which got executed failed:
> 
> Erorr output: 
> "Build step 'Publish JUnit test result report' changed 
> build result to UNSTABLE"
> 
> I am guessing that means there is something in JUnit reporter which can set 
> the build status to pass or fail.
> 

Yes: it sets the status to UNSTABLE or SUCCESS. But never to FAILED.
> --Ishan
> 
> On Saturday, April 27, 2019 at 6:32:53 AM UTC-7, Ullrich Hafner wrote:
> The JUnit plugin cannot set the build result to failed. The unstable state is 
> a feature of Jenkins.
> 
> (If you need to set the build to failed you can do this with your build tool, 
> but I would not recommend to do it)
> 
>> Am 27.04.2019 um 00:27 schrieb cliffha...@gmail.com <>:
>> 
>> Hi,
>> 
>> So I am using the Jenknis JUnit plugin to parse the test results. I have a 
>> job which has just one test and it fails all the time however, the JUnit 
>> plugin marks the job as unstable and not failed. Any reasons why? I have 
>> tried to set the Health report amplification factor to 1, 0.1, 0.0 but no 
>> luck. 
>> 
>> How can I get the JUnit to fail the build?
>> 
>> Thanks,
>> --Ishan
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkins...@googlegroups.com <>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/907f0d07-ed2d-427e-9649-ddb1caebb457%40googlegroups.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/1835afb9-ee4e-46c9-8d12-03c5b9b5a920%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/092AED53-5A4A-4CA5-BCBA-C6F5152C167D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Why does somestring.digest('SHA-1') fail in pipeline

2019-04-30 Thread ZillaYT
I have this simple code and it works on my Macs groovy

String sigStr = 'iurpeirupru04790734'
sigStr = sigStr.digest('SHA-1')
println sigStr

But I get this error when I run it in a Jenkins pipeline. Why? Thanks!

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No 
signature of method: java.lang.String.digest() is applicable for argument 
types: (java.lang.String) values: [SHA-1] Possible solutions: getAt(java.
lang.String), size(), toSet(), size(), next(), toList()
 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
ScriptBytecodeAdapter.java:58)
 at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(
PojoMetaClassSite.java:49)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
CallSiteArray.java:48)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(
AbstractCallSite.java:113)
 at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(
DefaultInvoker.java:20)
 at WorkflowScript.run(WorkflowScript:6)
 at ___cps.transform___(Native Method)
 at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(
ContinuationGroup.java:57)
 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.
dispatchOrArg(FunctionCallBlock.java:109)
 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(
FunctionCallBlock.java:82)
 at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(
ContinuationPtr.java:72)
 at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
 at com.cloudbees.groovy.cps.Next.step(Next.java:83)
 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
 at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use
(GroovyCategorySupport.java:122)
 at org.codehaus.groovy.runtime.GroovyCategorySupport.use(
GroovyCategorySupport.java:261)
 at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java
:174)
 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.
java:332)
 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(
CpsThreadGroup.java:83)
 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.
java:244)
 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.
java:232)
 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(
CpsVmExecutorService.java:64)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at hudson.remoting.SingleLaneExecutorService$1.run(
SingleLaneExecutorService.java:131)
 at jenkins.util.ContextResettingExecutorService$1.run(
ContextResettingExecutorService.java:28)
 at jenkins.security.ImpersonatingExecutorService$1.run(
ImpersonatingExecutorService.java:59)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:624)
 at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/86563179-18e2-4dd7-afeb-5859e1ecb7da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Odd environment problem with git under Jenkins on AIX

2019-04-30 Thread Mark Waite
On Tue, Apr 30, 2019 at 7:02 AM Rich Stephens wrote:


> I would be happy to join the platform group, though I am not sure of what
> assistance I might be.  While I have used Jenkins on Linux, AIX, HPUX, and
> Windows, my experience is limited to simple master setups building a legacy
> C/C++ project.
>
>
Anyone with the skills to maintain an aging AIX environment will certainly
be able to contribute when we're evaluating platform topics.  There are
often interesting subtleties in using Jenkins on a different platform that
can help the community as a whole.

Mark Waite


> Again, thank you for your assistance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c458b5e6-71aa-48a7-8fc9-cbdf4bcea6c6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thanks!
Mark Waite

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFu74PN8XW8ey_u4Wq4vP3BswFMRNv4XvrzhqU%2B52KhdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does somestring.digest('SHA-1') fail in pipeline

2019-04-30 Thread Slide
Pipeline is a subset of groovy, so something may not work in pipeline that
work in groovy standalone. It also may depend on what version of groovy
pipeline is using as the digest method was added in groovy 2.5.0 I believe.
I don't know what version pipeline is using right now.

On Tue, Apr 30, 2019, 14:41 ZillaYT  wrote:

> I have this simple code and it works on my Macs groovy
>
> String sigStr = 'iurpeirupru04790734'
> sigStr = sigStr.digest('SHA-1')
> println sigStr
>
> But I get this error when I run it in a Jenkins pipeline. Why? Thanks!
>
> hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No
> signature of method: java.lang.String.digest() is applicable for argument
> types: (java.lang.String) values: [SHA-1] Possible solutions: getAt(java.
> lang.String), size(), toSet(), size(), next(), toList()
>  at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
> ScriptBytecodeAdapter.java:58)
>  at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(
> PojoMetaClassSite.java:49)
>  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
> CallSiteArray.java:48)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(
> AbstractCallSite.java:113)
>  at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(
> DefaultInvoker.java:20)
>  at WorkflowScript.run(WorkflowScript:6)
>  at ___cps.transform___(Native Method)
>  at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(
> ContinuationGroup.java:57)
>  at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.
> dispatchOrArg(FunctionCallBlock.java:109)
>  at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.
> fixArg(FunctionCallBlock.java:82)
>  at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive
> (ContinuationPtr.java:72)
>  at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21
> )
>  at com.cloudbees.groovy.cps.Next.step(Next.java:83)
>  at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
>  at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
>  at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.
> use(GroovyCategorySupport.java:122)
>  at org.codehaus.groovy.runtime.GroovyCategorySupport.use(
> GroovyCategorySupport.java:261)
>  at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
>  at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.
> java:174)
>  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.
> java:332)
>  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(
> CpsThreadGroup.java:83)
>  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(
> CpsThreadGroup.java:244)
>  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(
> CpsThreadGroup.java:232)
>  at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(
> CpsVmExecutorService.java:64)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at hudson.remoting.SingleLaneExecutorService$1.run(
> SingleLaneExecutorService.java:131)
>  at jenkins.util.ContextResettingExecutorService$1.run(
> ContextResettingExecutorService.java:28)
>  at jenkins.security.ImpersonatingExecutorService$1.run(
> ImpersonatingExecutorService.java:59)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511
> )
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1149)
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:624)
>  at java.lang.Thread.run(Thread.java:748)
> Finished: FAILURE
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/86563179-18e2-4dd7-afeb-5859e1ecb7da%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVf-x6EEtFryc%2BMep%2B%3DFXBFSUyg0YKJoZFXpnrqPYuQ0Tw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.