Re: MSTest plugin issue with Jenkins

2017-06-13 Thread Mark Waite
I wonder if it may be that your forward slashes in the file name are
confusing MSTest.  Have you tried "\" instead of "/"?

On Tue, Jun 13, 2017 at 6:10 PM Meet vadaria  wrote:

> HI,
> I am trying to use MSTest plugin to do unit test on .Net project. My build
> is failing when i added MSTest build step. I am getting an error as below:
> *Error:*
>
>> [PricingAPI_Test] $ "C:\Program Files (x86)\Microsoft Visual Studio
>> 14.0\Common7\IDE\MSTest.exe" /resultsfile:testResults.trx
>> /testcontainer:D:/a-slave/workspace/PricingAPI_Test/PricingAPI/PricingAPI.Tests.dll
>> %1 is not a valid Win32 application
>> FATAL: MSTest command execution failed
>> java.io.IOException: Cannot run program "C:\Program Files (x86)\Microsoft
>> Visual Studio 14.0\Common7\IDE\MSTest.exe" (in directory
>> "D:\a-slave\workspace\PricingAPI_Test"): CreateProcess error=193, %1 is not
>> a valid Win32 application
>> at java.lang.ProcessBuilder.start(Unknown Source)
>> at hudson.Proc$LocalProc.(Proc.java:245)
>> at hudson.Proc$LocalProc.(Proc.java:214)
>> at hudson.Launcher$LocalLauncher.launch(Launcher.java:850)
>> at hudson.Launcher$ProcStarter.start(Launcher.java:384)
>> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1195)
>> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1160)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:153)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:50)
>> at hudson.remoting.Request$2.run(Request.java:336)
>> at
>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
>> at java.util.concurrent.FutureTask.run(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> at hudson.remoting.Engine$1$1.run(Engine.java:94)
>> at java.lang.Thread.run(Unknown Source)
>> at ..remote call to JNLP4-connect connection from
>> 10.250.4.225/10.250.4.225:1741(Native Method)
>> at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
>> at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
>> at hudson.remoting.Channel.call(Channel.java:830)
>> at hudson.Launcher$RemoteLauncher.launch(Launcher.java:959)
>> at hudson.Launcher$ProcStarter.start(Launcher.java:384)
>> at hudson.Launcher$ProcStarter.join(Launcher.java:395)
>> at org.jenkinsci.plugins.MsTestBuilder.perform(MsTestBuilder.java:244)
>> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>> at
>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
>> at hudson.model.Build$BuildExecution.build(Build.java:206)
>> at hudson.model.Build$BuildExecution.doRun(Build.java:163)
>> at
>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
>> at hudson.model.Run.execute(Run.java:1735)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>> at hudson.model.ResourceController.execute(ResourceController.java:97)
>> at hudson.model.Executor.run(Executor.java:405)
>> Caused by: java.io.IOException: CreateProcess error=193, %1 is not a
>> valid Win32 application
>> at java.lang.ProcessImpl.create(Native Method)
>> at java.lang.ProcessImpl.(Unknown Source)
>> at java.lang.ProcessImpl.start(Unknown Source)
>> at java.lang.ProcessBuilder.start(Unknown Source)
>> at hudson.Proc$LocalProc.(Proc.java:245)
>> at hudson.Proc$LocalProc.(Proc.java:214)
>> at hudson.Launcher$LocalLauncher.launch(Launcher.java:850)
>> at hudson.Launcher$ProcStarter.start(Launcher.java:384)
>> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1195)
>> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1160)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:153)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:50)
>> at hudson.remoting.Request$2.run(Request.java:336)
>> at
>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
>> at java.util.concurrent.FutureTask.run(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> at hudson.remoting.Engine$1$1.run(Engine.java:94)
>> at java.lang.Thread.run(Unknown Source)
>> Build step 'Run unit tests with MSTest' marked build as failure
>> Finished: FAILURE
>
>
> 
>
> can someone please help me to understand this error and how to resolve this. 
> I tried many things, I couldn't find any solution. When i looked online, it's 
> saying because of space in the service path, it's giving error "*error=193, 
> %1 is not a valid Win32 application*" but i don't find any solution. can 
> someone please explain how to use MSTest with Jenkins
>
>
> 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.
> T

MSTest plugin issue with Jenkins

2017-06-13 Thread Meet vadaria
HI,
I am trying to use MSTest plugin to do unit test on .Net project. My build 
is failing when i added MSTest build step. I am getting an error as below:
*Error:*

> [PricingAPI_Test] $ "C:\Program Files (x86)\Microsoft Visual Studio 
> 14.0\Common7\IDE\MSTest.exe" /resultsfile:testResults.trx 
> /testcontainer:D:/a-slave/workspace/PricingAPI_Test/PricingAPI/PricingAPI.Tests.dll
> %1 is not a valid Win32 application
> FATAL: MSTest command execution failed
> java.io.IOException: Cannot run program "C:\Program Files (x86)\Microsoft 
> Visual Studio 14.0\Common7\IDE\MSTest.exe" (in directory 
> "D:\a-slave\workspace\PricingAPI_Test"): CreateProcess error=193, %1 is not 
> a valid Win32 application
> at java.lang.ProcessBuilder.start(Unknown Source)
> at hudson.Proc$LocalProc.(Proc.java:245)
> at hudson.Proc$LocalProc.(Proc.java:214)
> at hudson.Launcher$LocalLauncher.launch(Launcher.java:850)
> at hudson.Launcher$ProcStarter.start(Launcher.java:384)
> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1195)
> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1160)
> at hudson.remoting.UserRequest.perform(UserRequest.java:153)
> at hudson.remoting.UserRequest.perform(UserRequest.java:50)
> at hudson.remoting.Request$2.run(Request.java:336)
> at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at hudson.remoting.Engine$1$1.run(Engine.java:94)
> at java.lang.Thread.run(Unknown Source)
> at ..remote call to JNLP4-connect connection from 
> 10.250.4.225/10.250.4.225:1741(Native Method)
> at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
> at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
> at hudson.remoting.Channel.call(Channel.java:830)
> at hudson.Launcher$RemoteLauncher.launch(Launcher.java:959)
> at hudson.Launcher$ProcStarter.start(Launcher.java:384)
> at hudson.Launcher$ProcStarter.join(Launcher.java:395)
> at org.jenkinsci.plugins.MsTestBuilder.perform(MsTestBuilder.java:244)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
> at hudson.model.Build$BuildExecution.build(Build.java:206)
> at hudson.model.Build$BuildExecution.doRun(Build.java:163)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
> at hudson.model.Run.execute(Run.java:1735)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:97)
> at hudson.model.Executor.run(Executor.java:405)
> Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid 
> Win32 application
> at java.lang.ProcessImpl.create(Native Method)
> at java.lang.ProcessImpl.(Unknown Source)
> at java.lang.ProcessImpl.start(Unknown Source)
> at java.lang.ProcessBuilder.start(Unknown Source)
> at hudson.Proc$LocalProc.(Proc.java:245)
> at hudson.Proc$LocalProc.(Proc.java:214)
> at hudson.Launcher$LocalLauncher.launch(Launcher.java:850)
> at hudson.Launcher$ProcStarter.start(Launcher.java:384)
> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1195)
> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1160)
> at hudson.remoting.UserRequest.perform(UserRequest.java:153)
> at hudson.remoting.UserRequest.perform(UserRequest.java:50)
> at hudson.remoting.Request$2.run(Request.java:336)
> at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at hudson.remoting.Engine$1$1.run(Engine.java:94)
> at java.lang.Thread.run(Unknown Source)
> Build step 'Run unit tests with MSTest' marked build as failure
> Finished: FAILURE




can someone please help me to understand this error and how to resolve this. I 
tried many things, I couldn't find any solution. When i looked online, it's 
saying because of space in the service path, it's giving error "*error=193, %1 
is not a valid Win32 application*" but i don't find any solution. can someone 
please explain how to use MSTest with Jenkins


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/09f0847a-5326-4615-840e-fd3ef75d0d34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there a way to take away Rebuild Last/Rebuild privilege from a role?

2017-06-13 Thread Victoria Kozel
Hello,

I am using project-based roles to give user access to certain projects, and 
I am wondering if there is a way to remove Rebuild Last/Rebuild links from 
a user's project view. I tried taking away Replay privilege from a role 
(it's under a Run category), but a user can still see Rebuild Last/Rebuild 
link in a job.

Thank you! 

-- 
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/2c038a22-849b-429e-a6c3-4a012807f15d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Injecting environment variables - sourcing shell script

2017-06-13 Thread Victoria Kozel
Thank you Randy for the suggestion. I installed the plugin, but even though 
it showed up in my Build Environment Phase it runs with an error. I am 
probably going to simply source my shell script in the build step itself - 
I don't like doing it, but the upside is that it requires fewer plugins.

Thank you!

On Monday, June 12, 2017 at 2:05:33 PM UTC-7, Jackson, Randy wrote:
>
> Have you looked at the Environment Script Plugin?
>
> I use it to generate parameters that I need to use later in my builds.
>
>  
>
> https://wiki.jenkins.io/display/JENKINS/Environment+Script+Plugin
>
>  
>
>  
>
>  
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Victoria Kozel
> *Sent:* Monday, June 12, 2017 1:49 PM
> *To:* Jenkins Users
> *Subject:* Injecting environment variables - sourcing shell script
>
>  
>
> Hello,
>
>  
>
> I need to use a certain variable in my Shell Build Step that is figured in 
> a shell script stored on the node. When I "source" this script in the same 
> step in which I need the variable, it works. However sourcing it in the 
> EnvInject 
> step under Build Environment phase does not seem to transfer the variable 
> to the Build Step. Here's how the job is configured:
>
>  
>
> X . Inject environment variables to the build process
>
>  
>
> Script Content: source /home/jenkins/setInventoryVar.sh
>
>  
>
>  
>
>  
>
> I can see at this point the output of the script in the console, yet the 
> Build Step does not inherit a variable set in Inject Env.
>
>  
>
> Suggestions are greatly appreciated.
>
> -- 
> 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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/dd621d0a-5a08-40a3-913c-54535f12cc5f%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
> --
> This email is intended solely for the named addressee(s) and may be 
> confidential or contain privileged information. Review, disclosure, 
> copying, distribution, or use of this email by anyone other than an 
> intended recipient is strictly prohibited. If you received this email in 
> error, please delete it from your system and notify the sender immediately. 
> While precautions have been taken to help ensure no computer viruses are 
> present, there is a risk whenever transmitting emails or downloading 
> attachments. The sender will not be liable for any loss or damage resulting 
> from any malware in this communication or for improper or incomplete 
> transmission of its contents or for any delay in its receipt. 
>

-- 
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/125130fd-a83f-47c8-b1f9-d306c2c7b1ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SSH Slave crashing immediately after start

2017-06-13 Thread Mark Waite
Is your older slave machine running the same Java version as your master?
If not, you may see those types of problems.

Mark Waite

On Tue, Jun 13, 2017 at 2:05 PM Peter Berghold 
wrote:

> I'm trying to re-establish connectivity to an SSH slave that used to work
> when I was running a much older version of Jenkins.  Currently I'm using
> v2.65. What I'm seeing (somewhat trimmed) in the log is the following:
>
> [06/13/17 20:04:05] [SSH] Checking java version of java
> [06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
> [06/13/17 20:04:05] [SSH] Starting sftp client.
> [06/13/17 20:04:05] [SSH] Copying latest slave.jar...
> [06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
> Expanded the channel window size to 4MB
> [06/13/17 20:04:05] [SSH] Starting slave process: cd "/data/jenkins-slave" && 
> java  -jar slave.jar
> <===[JENKINS REMOTING CAPACITY]===>channel started
> Slave JVM has not reported exit code. Is it still running?
> [06/13/17 20:04:09] Launch failed - cleaning up connection
> [06/13/17 20:04:09] [SSH] Connection closed.
> ERROR: Connection terminated
> java.io.EOFException
>   at 
> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
>   at 
> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
>   at 
> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
>   at java.io.ObjectInputStream.(ObjectInputStream.java:301)
>   at 
> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
>   at 
> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
>   at 
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
> Caused: java.io.IOException: Unexpected termination of the channel
>   at 
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
>
>
> At a loss...
>
> --
> 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/CAArvnv2jpH-nq1fxzarHa%2BZGMoCdN4nfCFqhf8%2BVbxRcgGGSqQ%40mail.gmail.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/CAO49JtEojESYVzOWJhV0v4vp0pS6c%2Bg35_gJR4WX3vj1eG3tOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


SSH Slave crashing immediately after start

2017-06-13 Thread Peter Berghold
I'm trying to re-establish connectivity to an SSH slave that used to work
when I was running a much older version of Jenkins.  Currently I'm using
v2.65. What I'm seeing (somewhat trimmed) in the log is the following:

[06/13/17 20:04:05] [SSH] Checking java version of java
[06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
[06/13/17 20:04:05] [SSH] Starting sftp client.
[06/13/17 20:04:05] [SSH] Copying latest slave.jar...
[06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
Expanded the channel window size to 4MB
[06/13/17 20:04:05] [SSH] Starting slave process: cd
"/data/jenkins-slave" && java  -jar slave.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
Slave JVM has not reported exit code. Is it still running?
[06/13/17 20:04:09] Launch failed - cleaning up connection
[06/13/17 20:04:09] [SSH] Connection closed.
ERROR: Connection terminated
java.io.EOFException
at 
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
at 
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
at java.io.ObjectInputStream.(ObjectInputStream.java:301)
at 
hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
at 
hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
Caused: java.io.IOException: Unexpected termination of the channel
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)


At a loss...

-- 
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/CAArvnv2jpH-nq1fxzarHa%2BZGMoCdN4nfCFqhf8%2BVbxRcgGGSqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Use hashicorp-vault-plugin write to vault

2017-06-13 Thread Paul Wolstenholme
Is there a method using the hashicorp-vault-plugin to write values to the 
vault or generate a token. Or, are people using  a credential bindings 
plugins to retrieve vault approle or  token and use the vault api or cli. 

Cheers,
apul

-- 
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/bc94dc62-2267-4af1-a9e8-6027606e94bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Posting comments on a jenkins build

2017-06-13 Thread Mark Waite
The build failure analyzer plugin may help you collect descriptions of
common causes of build failures.

The "Claim plugin" will allow a user to "claim" a broken build and comment
on it.  That allows others to know who is working a specific problem
currently.  Unfortunately, there is a known security issue in that plugin
which may make it unavailable from the update center.

On Tue, Jun 13, 2017 at 7:10 AM SACHIN V  wrote:

> I wanted people to be able to post comments so that some kind of
> collaboration on build failure etc
>
> On Tue, Jun 13, 2017 at 6:31 PM, Mark Waite 
> wrote:
>
>> It depends what you mean by posting a comment, and it depends who is
>> doing it and how they are doing it.
>>
>> The build description can be set for a particular build if you want the
>> job (or some other program) to adjust the description of the build.  That
>> is displayed in the job results page and in other locations.  It is a
>> single string, not something which can reasonably be used to gather a
>> collection of comments from many different people or sources.
>>
>> I don't know of a way to connect multiple sets of comments to a single
>> build.
>>
>> Mark Waite
>>
>> On Tue, Jun 13, 2017 at 12:44 AM SACHIN V  wrote:
>>
>>> Hi All,
>>>
>>> Could you please tell if it is possible to post a comment on a jenkins
>>> build ?
>>>
>>> Regards,
>>> Sachin
>>>
>>> --
>>> 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/8c497bb5-a8b5-4a4d-a6f8-eeae5fed56cb%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/4nhA1QL9Hdg/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/CAO49JtH9oUr2HLZWuPOxOY%2BjkOqqONP9q5%3DZSRpnAcFuJHBVjA%40mail.gmail.com
>> 
>> .
>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Thanks & Regards,
>
> V Sachin
>
> --
> 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/CADPP75sTpdSmhgPrbcG%3Dc1nmmy01TiY9qeQqh-WQrkN_sF4zRA%40mail.gmail.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/CAO49JtFYUpf6dwSGDJy51W6oqnG3CgF7TE%2BFB1Ncc9bJg0-RCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Recent jenkins release 2.6* no longer parses html in Sectioned View

2017-06-13 Thread Rinaldo DiGiorgio
The issue is with the Sectioned View Plugin, the last release changed the 
way display name worked. Perhaps the intent was to not support html for the 
display name so this will be viewed as ok or it is supposed to work and 
there is no test that verifies operation from release to release. If html 
is supported for the display name, then there should be a test that 
verifies that it displays as html in a browser. I am not familiar with the 
jenkins test framework for testing of operation from the browser.

On Tuesday, June 13, 2017 at 6:44:51 AM UTC-4, Rinaldo DiGiorgio wrote:
>
> The section view plugin allows one to have multiple sections on a page 
> with a standard jenkins job list. Each Jenkins Job list can have a 
> description.  The description has html. Prior to a recent release the 
> description was parsed and displayed as html.  In 2.64 the description is 
> no longer parsed, it is displayed as text.
>

-- 
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/7f0b0871-fdb6-4016-9a1d-bdf0644cd6e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Posting comments on a jenkins build

2017-06-13 Thread SACHIN V
I wanted people to be able to post comments so that some kind of
collaboration on build failure etc

On Tue, Jun 13, 2017 at 6:31 PM, Mark Waite 
wrote:

> It depends what you mean by posting a comment, and it depends who is doing
> it and how they are doing it.
>
> The build description can be set for a particular build if you want the
> job (or some other program) to adjust the description of the build.  That
> is displayed in the job results page and in other locations.  It is a
> single string, not something which can reasonably be used to gather a
> collection of comments from many different people or sources.
>
> I don't know of a way to connect multiple sets of comments to a single
> build.
>
> Mark Waite
>
> On Tue, Jun 13, 2017 at 12:44 AM SACHIN V  wrote:
>
>> Hi All,
>>
>> Could you please tell if it is possible to post a comment on a jenkins
>> build ?
>>
>> Regards,
>> Sachin
>>
>> --
>> 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/8c497bb5-a8b5-4a4d-a6f8-
>> eeae5fed56cb%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/4nhA1QL9Hdg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAO49JtH9oUr2HLZWuPOxOY%2BjkOqqONP9q5%
> 3DZSRpnAcFuJHBVjA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks & Regards,

V Sachin

-- 
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/CADPP75sTpdSmhgPrbcG%3Dc1nmmy01TiY9qeQqh-WQrkN_sF4zRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Posting comments on a jenkins build

2017-06-13 Thread Mark Waite
It depends what you mean by posting a comment, and it depends who is doing
it and how they are doing it.

The build description can be set for a particular build if you want the job
(or some other program) to adjust the description of the build.  That is
displayed in the job results page and in other locations.  It is a single
string, not something which can reasonably be used to gather a collection
of comments from many different people or sources.

I don't know of a way to connect multiple sets of comments to a single
build.

Mark Waite

On Tue, Jun 13, 2017 at 12:44 AM SACHIN V  wrote:

> Hi All,
>
> Could you please tell if it is possible to post a comment on a jenkins
> build ?
>
> Regards,
> Sachin
>
> --
> 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/8c497bb5-a8b5-4a4d-a6f8-eeae5fed56cb%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/CAO49JtH9oUr2HLZWuPOxOY%2BjkOqqONP9q5%3DZSRpnAcFuJHBVjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: java.io.IOException: Failed to mkdirs:

2017-06-13 Thread Mark Waite
Most likely there is a permission problem on that directory on that agent.
The user account running the Jenkins agent does not have permission to
write to that directory.  Check the permissions and make corrections as
needed.

Mark Waite

On Tue, Jun 13, 2017 at 6:17 AM Sanjay Sharma 
wrote:

> Hi All,
>
> Can anyone please look into this why I am getting this issue in console
> output
>
> Started by user admin
> Building in workspace /Users/amit/Documents/workspace/bt.ios.com
> java.io.IOException: Failed to mkdirs: /Users/amit/Documents/workspace/
> bt.ios.com
>  at hudson.FilePath.mkdirs(FilePath.java:1169)
>  at hudson.model.AbstractProject.checkout(AbstractProject.java:1279)
>  at
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
>  at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
>  at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
>  at hudson.model.Run.execute(Run.java:1728)
>  at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
>  at hudson.model.ResourceController.execute(ResourceController.java:98)
>  at hudson.model.Executor.run(Executor.java:405)
> Finished: FAILURE
>
>
> Thanks,
> Sanjay
>
> --
> 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/c75987b7-b1c7-4fd7-bc71-49cb837e48cf%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/CAO49JtGPJRAuxJSA4%2Bx21ik6%2B8Kb2-orrv6pWqGtVrY0H73K_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to set environment variable in multibranch pipeline?

2017-06-13 Thread Kevin Burnett
here's an example Jenkinsfile that sets an environment variable (REPO_URL) 
that applies to all stages. you can also use the withEnv step to set an 
environment variable for a certain block.

pipeline {
  agent { label 'docker' }
  environment {
REPO_URL = 'www.my.repo'
  }
  stages {
stage('build') {
  steps {
sh 'env | grep REPO_URL'
  }
}
  }
}

Jenkinsfiles apply to all branches in a repo, so that part is handled 
implicitly.

Hope this helps,
KB


On Tuesday, June 13, 2017 at 3:53:33 AM UTC-4, Mark Allison wrote:
>
> I have a Jenkins multibranch pipeline project and I want to set an 
> environment variable for all branches. Is this possible? I could only see a 
> way to do it with the environment injector plugin at the branch level. I 
> want to be able to do this at the project level because I want new feature 
> branches to automatically inherit some environment variables.
>

-- 
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/35f81b50-ac62-4f9c-8937-b8c600434a8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


java.io.IOException: Failed to mkdirs:

2017-06-13 Thread Sanjay Sharma
Hi All,

Can anyone please look into this why I am getting this issue in console 
output

Started by user admin
Building in workspace /Users/amit/Documents/workspace/bt.ios.com
java.io.IOException: Failed to mkdirs: 
/Users/amit/Documents/workspace/bt.ios.com
 at hudson.FilePath.mkdirs(FilePath.java:1169)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1279)
 at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
 at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
 at hudson.model.Run.execute(Run.java:1728)
 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
 at hudson.model.ResourceController.execute(ResourceController.java:98)
 at hudson.model.Executor.run(Executor.java:405)
Finished: FAILURE


Thanks,
Sanjay

-- 
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/c75987b7-b1c7-4fd7-bc71-49cb837e48cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Recent jenkins release 2.6* no longer parses html in Sectioned View

2017-06-13 Thread Rinaldo DiGiorgio
The section view plugin allows one to have multiple sections on a page with 
a standard jenkins job list. Each Jenkins Job list can have a description. 
 The description has html. Prior to a recent release the description was 
parsed and displayed as html.  In 2.64 the description is no longer parsed, 
it is displayed as text.

-- 
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/d4eb0abc-f15c-4344-909c-0c57b72ed388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to set environment variable in multibranch pipeline?

2017-06-13 Thread Mark Allison
I have a Jenkins multibranch pipeline project and I want to set an 
environment variable for all branches. Is this possible? I could only see a 
way to do it with the environment injector plugin at the branch level. I 
want to be able to do this at the project level because I want new feature 
branches to automatically inherit some environment variables.

-- 
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/2a847c8e-78ac-44e0-837e-2679435449ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.