Re: Creating the product from Jenkins

2018-02-27 Thread swaraj somala
Hi ,

I am trying to create .product(java Product) in Jenkins, But i am getting 
the below errors.

[WARNING] Mirror tool: Problems resolving provisioning plan.: [Unable to 
satisfy dependency from 1.0.1 1.0.1 to org.antlr.runtime 
[4.3.0.v201502022030].; Unable to satisfy dependency from 1.0.1 1.0.1 to 
org.eclipse.jdt.core [3.12.3.v_OTDT_r253_201703071318].; Unable to satisfy 
dependency from 1.0.1 1.0.1 to org.slf4j.api [1.7.10.v20160921-1923].]
[WARNING] More information on the preceding warning(s) can be found here:
[WARNING] - http://wiki.eclipse.org/Tycho_Messages_Explained#Mirror_tool
[INFO] 
[INFO] --- tycho-p2-repository-plugin:0.26.0:archive-repository 
(default-archive-repository) @ com.avin.product ---
[INFO] Building zip: 
E:\DDrive\daily\13-02\15_02\com.avin.product\target\com.avin.product-1.0.0.zip
[INFO] 
[INFO] --- tycho-p2-director-plugin:0.26.0:materialize-products 
(materialize-products) @ com.avin.product ---
[INFO] Installing product 1.0.1 for environment win32/win32/x86_64 to 
E:\DDrive\daily\13-02\15_02\com.avin.product\target\products\1.0.1\win32\win32\x86_64
Installing 1.0.1 1.0.1.
Installation failed.
Cannot complete the install because one or more required items could not be 
found.
Software being installed: bswCodeGen 1.0.1 (1.0.1 1.0.1)
Missing requirement: bswCodeGen 1.0.1 (1.0.1 1.0.1) requires 
'org.antlr.runtime [4.3.0.v201502022030]' but it could not be found
Application failed, log file location: 
C:\Users\swaraj_somala\AppData\Local\Temp\tycho2233503430392072007equinox\config\1519735504852.log


I have used org.antlr.runtime [3.2.0.v201101311130],org.eclipse.jdt.core 
[3.12.3.v20170228-1205] in my target.
Can you please provide a repsonse for the same.

Thank You 
 


On Friday, February 16, 2018 at 9:07:29 PM UTC+5:30, swaraj somala wrote:
>
> I tried to Create the product from Jenkins but I am facing the following 
> issue
>
> *CodeGen_GUI 1.0.0 (1.0.0 1.0.0) requires 'org.antlr.runtime 
> [4.3.0.v201502022030]' but it could not be found*
>
> In my target I have org.antlr.runtime [3.2.0.v201101311130] but Jenkins 
> expecting the newer version of that jar 4.3.0. Is there any way to solve 
> this issue please guide me?
>

-- 
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/765ef278-2fee-450d-9b65-cbb38ecd4ac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [solved] Re: Docker cloud plugin and pipeline using docker

2018-02-27 Thread Christian Gagneraud
On 27 February 2018 at 04:55, nicolas de loof  wrote:
> For a dockerized agent to be able to run docker pipeline, it has to use a
> volume for workspace directory so this one can be shared with other
> containers it creates.
> Your docker agent template should be configured to use "/home/jenkins/agent"
> as agent root directory, as this one is a volume and as such workspace
> sub-folder will be shareable with other containers.

Thanks a lot for the tip, greatly appreciated!

Chris

-- 
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/CABxGUTj7dV1DDcgmBMd6rc7KxO767%3DSZ%2BqZLeE%3DSqHhXWGvBaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How do I use groups with the google login plugin?

2018-02-27 Thread red 888
I installed and setup the google login 
plugin: https://wiki.jenkins.io/display/JENKINS/Google+Login+Plugin

This works and I can restrict access by domain.

But this still isn't usable for me until I can restrict access by group. 
How can I accomplish this?  Can I use "Project-based Matrix Authorization 
Strategy" with google groups?

-- 
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/f750edf9-c2c5-4d14-b95c-8c6e1e90ad74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Environment Injector Plugin update?

2018-02-27 Thread Oleg Nenashev
Yes, no release by design

On Tuesday, February 27, 2018 at 12:09:47 PM UTC+1, David Aldrich wrote:
>
> Thanks Daniel, 
>
> David 
>
> > -Original Message- 
> > From: jenkins...@googlegroups.com  [mailto:jenkinsci- 
>  
> > us...@googlegroups.com ] On Behalf Of Daniel Beck 
> > Sent: 27 February 2018 10:58 
> > To: jenkins...@googlegroups.com  
> > Subject: Re: Environment Injector Plugin update? 
> > 
> > 
> > > On 27. Feb 2018, at 09:36, David Aldrich  > 
> > wrote: 
> > > 
> > > I am seeing a security warning for the Environment Injector Plugin but 
> no 
> > update is offered in Plugin Manager. 
> > 
> > Read the advisory. 
> > 
> > -- 
> > 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/3B96E499-91CF-464F- 
> > 840B-05D17D9A0885%40beckweb.net. 
> > For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> >  Click 
> > https://www.mailcontrol.com/sr/486F0RdrBKnGX2PQPOmvUkBugPZ!3WFC2c 
> > 6uEDqdQF6WpiKdoHpUBs7T!aduCpiBrZPrIRPbHFqrbIY9K1KtKg==  to report this 
> > email as spam. 
>

-- 
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/87aa22e6-fde5-4446-bed2-d9fcb07988cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SCM problem : can't launch git in Win7 slave node

2018-02-27 Thread Mark Waite
When launching via WebStart, you might be using a different Java Runtime
Environment than you're using when launched from the command line.

If your web browser is running a Java 9 plugin, or a Java 7 plugin, that
could cause many problems for Web Start which won't be seen with
the command line.

Mark Waite

On Tue, Feb 27, 2018 at 10:38 AM SmokingPC  wrote:

> My agent is slave is started via WebStart.
> If I launch agent via command line, git will be launched correctly in
> slave node.
>
> Why?
>
> SmokingPC於 2018年2月28日星期三 UTC+8上午12時41分15秒寫道:
>
>> Hi,
>> I am building a Jenkins server with 1 slave node.
>> Jenkins server is linux (ubuntu 16.04) and slave is Win7(to build some C#
>> codes).
>> Created a test project and node configuration. Git for windows is
>> installed in slave node.
>> I tested it, sources are cloned from my gitlab well.
>> Git path is set correctly in Global Tool Configuration and Node
>> Configuration.
>>
>> But my test project is always failed with same exception message as
>> following.
>> According this exception, I guess it launch git with path
>> "C:\Jenkins\workspace\SerialPortTool".
>> Can anyone help me?
>>
>> Thank you.
>>
>> ===
>> Started by user SmokingPC
>> Building remotely on My_Build (Test) in workspace
>> C:\Jenkins\workspace\SerialPortTool
>> java.lang.ClassNotFoundException:
>> java.lang.reflect.InaccessibleObjectException
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:348)
>> at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
>> at
>> hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
>> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1863)
>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746)
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>> at hudson.remoting.UserRequest.deserialize(UserRequest.java:274)
>> at hudson.remoting.UserResponse.retrieve(UserRequest.java:307)
>> at hudson.remoting.Channel.call(Channel.java:908)
>> Caused: java.io.IOException: Remote call on JNLP4-connect connection from
>> xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx:49416 failed
>> at hudson.remoting.Channel.call(Channel.java:912)
>> at hudson.FilePath.act(FilePath.java:986)
>> Caused: java.io.IOException: remote file operation failed:
>> C:\Jenkins\workspace\SerialPortTool at 
>> hudson.remoting.Channel@10168037:JNLP4-connect
>> connection from 192.168.0.124/192.168.0.124:49416
>> at hudson.FilePath.act(FilePath.java:993)
>> at hudson.FilePath.act(FilePath.java:975)
>> at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:137)
>> at hudson.plugins.git.GitSCM.createClient(GitSCM.java:795)
>> at hudson.plugins.git.GitSCM.createClient(GitSCM.java:786)
>> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1154)
>> at hudson.scm.SCM.checkout(SCM.java:495)
>> at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
>> at
>> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
>> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
>> at
>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
>> at hudson.model.Run.execute(Run.java:1724)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>> at hudson.model.ResourceController.execute(ResourceController.java:97)
>> at hudson.model.Executor.run(Executor.java:421)
>> 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/35007f20-15e8-4a70-a279-f6601e5a2b2c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 

Re: SCM problem : can't launch git in Win7 slave node

2018-02-27 Thread SmokingPC
My agent is slave is started via WebStart.
If I launch agent via command line, git will be launched correctly in slave 
node.

Why?

SmokingPC於 2018年2月28日星期三 UTC+8上午12時41分15秒寫道:
>
> Hi,
> I am building a Jenkins server with 1 slave node.
> Jenkins server is linux (ubuntu 16.04) and slave is Win7(to build some C# 
> codes).
> Created a test project and node configuration. Git for windows is 
> installed in slave node.
> I tested it, sources are cloned from my gitlab well.
> Git path is set correctly in Global Tool Configuration and Node 
> Configuration.
>
> But my test project is always failed with same exception message as 
> following.
> According this exception, I guess it launch git with path 
> "C:\Jenkins\workspace\SerialPortTool".
> Can anyone help me? 
>
> Thank you.
>
> ===
> Started by user SmokingPC
> Building remotely on My_Build (Test) in workspace 
> C:\Jenkins\workspace\SerialPortTool
> java.lang.ClassNotFoundException: 
> java.lang.reflect.InaccessibleObjectException
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at 
> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:348)
> at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
> at 
> hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1863)
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746)
> at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
> at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
> at hudson.remoting.UserRequest.deserialize(UserRequest.java:274)
> at hudson.remoting.UserResponse.retrieve(UserRequest.java:307)
> at hudson.remoting.Channel.call(Channel.java:908)
> Caused: java.io.IOException: Remote call on JNLP4-connect connection from 
> xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx:49416 failed
> at hudson.remoting.Channel.call(Channel.java:912)
> at hudson.FilePath.act(FilePath.java:986)
> Caused: java.io.IOException: remote file operation failed: 
> C:\Jenkins\workspace\SerialPortTool at 
> hudson.remoting.Channel@10168037:JNLP4-connect connection from 
> 192.168.0.124/192.168.0.124:49416
> at hudson.FilePath.act(FilePath.java:993)
> at hudson.FilePath.act(FilePath.java:975)
> at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:137)
> at hudson.plugins.git.GitSCM.createClient(GitSCM.java:795)
> at hudson.plugins.git.GitSCM.createClient(GitSCM.java:786)
> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1154)
> at hudson.scm.SCM.checkout(SCM.java:495)
> at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
> at hudson.model.Run.execute(Run.java:1724)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:97)
> at hudson.model.Executor.run(Executor.java:421)
> 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/35007f20-15e8-4a70-a279-f6601e5a2b2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SCM problem : can't launch git in Win7 slave node

2018-02-27 Thread SmokingPC
Hi,
I am building a Jenkins server with 1 slave node.
Jenkins server is linux (ubuntu 16.04) and slave is Win7(to build some C# 
codes).
Created a test project and node configuration. Git for windows is installed 
in slave node.
I tested it, sources are cloned from my gitlab well.
Git path is set correctly in Global Tool Configuration and Node 
Configuration.

But my test project is always failed with same exception message as 
following.
According this exception, I guess it launch git with path 
"C:\Jenkins\workspace\SerialPortTool".
Can anyone help me? 

Thank you.

===
Started by user SmokingPC
Building remotely on My_Build (Test) in workspace 
C:\Jenkins\workspace\SerialPortTool
java.lang.ClassNotFoundException: 
java.lang.reflect.InaccessibleObjectException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at 
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
at 
hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1863)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:274)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:307)
at hudson.remoting.Channel.call(Channel.java:908)
Caused: java.io.IOException: Remote call on JNLP4-connect connection from 
xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx:49416 failed
at hudson.remoting.Channel.call(Channel.java:912)
at hudson.FilePath.act(FilePath.java:986)
Caused: java.io.IOException: remote file operation failed: 
C:\Jenkins\workspace\SerialPortTool at 
hudson.remoting.Channel@10168037:JNLP4-connect connection from 
192.168.0.124/192.168.0.124:49416
at hudson.FilePath.act(FilePath.java:993)
at hudson.FilePath.act(FilePath.java:975)
at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:137)
at hudson.plugins.git.GitSCM.createClient(GitSCM.java:795)
at hudson.plugins.git.GitSCM.createClient(GitSCM.java:786)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1154)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1724)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
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/6aafe804-25bc-4048-a6cd-7e1080083bbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Git Plugin Issues

2018-02-27 Thread 'Burrows, John' via Jenkins Users
Hi All,

I have seen a few write-ups about this and just want to get some clarification, 
as I have not been able to solve this as of yet in our environments.

We are using Jenkins Master v2.89.4 on Windows 2008 R2 Servers. We have the 
latest Git (3.8.0) & Git Client (2.7.1) plugins installed.

We have multiple Jenkins Nodes/Slave Servers setup, using Windows, Linux, AIX, 
Solaris as the OS. The Agent Remoting version is v3.14, Java version matches 
between the Jenkins Masters (v1.8.0) and all of the Jenkins Nodes/Slaves.

We launch the Jenkins Node/Slave Agents using Java Web Start (Windows OS) or 
via SSH (Linux, AIX, Solaris). The Windows JNLP Agents run using a Service ID 
that has Administration privileges on the Windows Server. The SSH agents have a 
local id (same name as the Service ID) with the privileges necessary as well.

BitBucket is setup to utilize SSH for communications.

When we require the use of Git to interact with our BitBucket/Git Projects and 
Repositories, we set the following up to ensure proper communication between 
the Jenkins Nodes/Slave Servers and BitBucket/Git:


1)  We ensure that the Java version in use has the certificates in the 
cacerts for the BitBucket server we interact with for source code

2)  We create ssh keys for the above mentioned Service ID and ensure that 
they are in the .ssh folder under the Users Profile and Home directories.

3)  We copy the same rsa_id.pub ssh key to BitBucket and add the key to the 
Service ID account SSH Keys listings under the Service ID's Profile.

4)  We have credentials created on each Jenkins Master (Network ID and 
Password) for the Service Account, as the BitBucket server utilizes LDAP to 
authenticate as well as the Windows Servers and on the Linux, AIX and Solaris 
machines, we setup the local user with the same password. These credentials are 
chosen in the SCM Section of the Jenkins Job for the Git Repository 
configuration section.

Recently, we have come across the issue where the interaction with Git fails on 
some Windows Servers and some Linux or AIX servers. While we can have one 
Windows server failing and another working just fine on the same Jenkins 
Master. Same with the other OS based Nodes/Slaves. This was working fine 
earlier this year, but in the last 6-8 weeks, it has started to fail for some 
existing servers that worked fine before, and for some servers that have been 
Jenkins Nodes, but we recently added the interaction to Git.

We have 10 Jenkins Masters all set up identically, and as stated above, follow 
the same setup of every Jenkins Node/Slave as well.

Here are the errors we are running into (Credentials Unix BitBucket Groovy are 
the name of the credentials commonly used across all platforms):


Building remotely on XXXJENKINSNODEXXX in workspace d:\scm\checkout\John-Test

 > D:\SCM\Apps\Git\2.8.2\bin\git.exe rev-parse --is-inside-work-tree # 
 > timeout=10

Fetching changes from the remote Git repository

 > D:\SCM\Apps\Git\2.8.2\bin\git.exe config remote.origin.url 
 > ssh://g...@bitbucket.xxx.com:7999/projectname/reponame.git # timeout=10

Fetching upstream changes from 
ssh://g...@bitbucket.xxx.com:7999/projectname/reponame.git

 > D:\SCM\Apps\Git\2.8.2\bin\git.exe --version # timeout=10

using GIT_ASKPASS to set credentials Unix Bitbucket Groovy

 > D:\SCM\Apps\Git\2.8.2\bin\git.exe fetch --tags --progress 
 > ssh://g...@bitbucket.xxx.com:7999/projectname/reponame.git 
 > +refs/heads/*:refs/remotes/origin/*

ERROR: Error fetching remote repo 'origin'

hudson.plugins.git.GitException: Failed to fetch from 
ssh://g...@bitbucket..com:7999/projectname/reponame.git

at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:862)

at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129)

at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)

at hudson.scm.SCM.checkout(SCM.java:495)

at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)

at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)

at hudson.model.Run.execute(Run.java:1724)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

at hudson.model.ResourceController.execute(ResourceController.java:97)

at hudson.model.Executor.run(Executor.java:429)

Caused by: hudson.plugins.git.GitException: Command 
"D:\SCM\Apps\Git\2.8.2\bin\git.exe fetch --tags --progress 
ssh://g...@bitbucket.xxx.com:7999/projectname/reponame.git 
+refs/heads/*:refs/remotes/origin/*" returned status code 128:

stdout:

stderr: Permission denied (publickey).

fatal: Could not read from remote repository.



Please make sure you have the correct access rights

and the repository exists.



at 

RE: Environment Injector Plugin update?

2018-02-27 Thread David Aldrich
Thanks Daniel,

David

> -Original Message-
> From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-
> us...@googlegroups.com] On Behalf Of Daniel Beck
> Sent: 27 February 2018 10:58
> To: jenkinsci-users@googlegroups.com
> Subject: Re: Environment Injector Plugin update?
> 
> 
> > On 27. Feb 2018, at 09:36, David Aldrich 
> wrote:
> >
> > I am seeing a security warning for the Environment Injector Plugin but no
> update is offered in Plugin Manager.
> 
> Read the advisory.
> 
> --
> 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/3B96E499-91CF-464F-
> 840B-05D17D9A0885%40beckweb.net.
> For more options, visit https://groups.google.com/d/optout.
> 
> 
>  Click
> https://www.mailcontrol.com/sr/486F0RdrBKnGX2PQPOmvUkBugPZ!3WFC2c
> 6uEDqdQF6WpiKdoHpUBs7T!aduCpiBrZPrIRPbHFqrbIY9K1KtKg==  to report this
> email as spam.

-- 
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/e6e3aac208cc4294b69161507c20b8a9%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: Environment Injector Plugin update?

2018-02-27 Thread Daniel Beck

> On 27. Feb 2018, at 09:36, David Aldrich  wrote:
> 
> I am seeing a security warning for the Environment Injector Plugin but no 
> update is offered in Plugin Manager.

Read the advisory.

-- 
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/3B96E499-91CF-464F-840B-05D17D9A0885%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Kubernetes Plugin share workspace

2018-02-27 Thread Carlos Sanchez
You should be able to mount the workspace as an external volume using
persistentVolumeClaim in your podTemplate

On Mon, Feb 26, 2018 at 11:02 PM, Matthew Ceroni 
wrote:

> Is it possible, much like with the docker agent and reuseNode option, to
> share a work space between multiple kubernetes pods?
>
> My use case that I am trying to solve it to utilize the lock/milestone
> functionality to promote artifacts through environments (test, staging,
> prod). The problem is if I use a global agent at the top of my pipeline,
> that POD will stick around until the end user finally proceeds or aborts
> the promotion. I don't really want that as it uses up resources. If I use a
> stage specific agent then I have the problem that the workspace gets
> re-initialized each time.
>
> Thanks in advance.
>
> --
> 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/d6780c76-cc0c-4f60-90c5-448be26b7d61%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/CALHFn6NWHHJpcedePetffpgjui48QHp9sMYRMAVTh-uj%2BS5_wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Naginator Plugin

2018-02-27 Thread Joaquin Henriquez
Thx Victor. Will watch tat ticket.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Victor Martinez
Sent: 26 February 2018 15:53
To: Jenkins Users
Subject: EXTERNAL: Re: Naginator Plugin

There is already an open ticket:
- https://issues.jenkins-ci.org/browse/JENKINS-37076

Cheers
--
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/9e3f33bc-b5a7-41e4-8c6a-9ca9124c487a%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/8e6e6f5e6f9d40688a32a6399f90a57b%40BSKEXCH2013HYPV.mwrinfosecurity.com.
For more options, visit https://groups.google.com/d/optout.


Problem with FilePath.act() in custom pipeline step

2018-02-27 Thread 'Richard Hierlmeier' via Jenkins Users

I like to perform in a custom pipeline step some file operations on the 
slave node

The pipeline step calls the method doRemote:

def doRemote() {
def repoDir = createFilePath("dir_in_repo")
def callable = new MasterToSlaveFileCallable() {

private static final long serialVersionUID = 1;

public Integer invoke(File rootDirectory, VirtualChannel 
channel) throws IOException, InterruptedException {
def count = 0
if(rootDirectory.exists()) {
// TODO
}
return 0
}
};
def count = repoDir.act(callable);
}

def createFilePath(path) {
if (env['NODE_NAME'] == null) {
error "envvar NODE_NAME is not set, probably not inside an node {} 
or running an older version of Jenkins!";
} else if (env['NODE_NAME'].equals("master")) {
return new FilePath(path);
} else {
return new FilePath(Jenkins.getInstance().getComputer(env[
'NODE_NAME']).getChannel(), path);
}
}



Whenever the step is executed it fails with the following exception:

[Bitbucket] Build result notified
java.lang.IllegalArgumentException: Unable to locate class file for class 
customStep$1
at hudson.remoting.Which.classFileUrl(Which.java:61)
at 
hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:847)
at 
hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:875)


I moved already the anonymous class into a separate file. It did also not 
work.

Is it not possible to use the FilePath.act method in a custom pipeline step?

  Richard


-- 
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/2d10cb45-5d06-43d5-8c98-ed09f556eb48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Environment Injector Plugin update?

2018-02-27 Thread David Aldrich
Hi

I am seeing a security warning for the Environment Injector Plugin but no 
update is offered in Plugin Manager.

Best regards

David

-- 
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/42bb5365e5ba4ed5a3ca87e10339b16a%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: Using Config File Provider Plugin with placeholders and Token Macro Plugin

2018-02-27 Thread Roger Lehmann
That would be really nice of you!

Is there a more "standardized" way of providing config files with Jenkins?
I saw I could store the whole file as a secret with the Credentials plugin, 
but I can't edit it then. Only reupload without an easy way knowing what's 
in there.
And my use case needs to be able to view and edit a config file with 
secrets but keeping the secrets secret.


Am Freitag, 23. Februar 2018 14:36:18 UTC+1 schrieb slide:
>
> It looks like the environment variables are not added to the job, which is 
> where token macro can get at them, but are added to the local context 
> instead. I'll have to look into this more to determine how this can be 
> done. 
>
> On Fri, Feb 23, 2018 at 6:12 AM Roger Lehmann  > wrote:
>
>> Hi,
>>
>> I'm having trouble with replacing tokens inside my config file.
>> The config file token replacement only respects environment variable 
>> values defined on the job, but not inside the withEnv or withCredential 
>> statement blocks.
>> And as far as I know (and used to), Jenkins or rather the statements 
>> provide the credentials as env vars.
>>
>> Could anyone please help me on how to do it properly?
>> Maybe I'm just using the wrong macro in my config file?
>>
>> Thank you!
>>
>>
>> *Example code:*
>>
>> node('master'){
>>> stage('test w/o magic') {
>>> configFileProvider([configFile(fileId: 
>>> 'c76d4a37-1233-4f8c-a2bb-e2f9cf4e05b4', replaceTokens: true, 
>>> targetLocation: 'test.txt', variable: 'testfile')]) {
>>> sh 'cat $testfile'
>>> echo "var1: $env.var1"
>>> echo "var2: $var2"
>>> }
>>> }
>>> stage('testwith centials provider') {
>>> withCredentials([string(credentialsId: 'aws_vault_password', 
>>> variable: 'var1'),
>>> sshUserPrivateKey(credentialsId: 'jenkins-robot-ssh-key',
>>> keyFileVariable: 'var2',
>>> passphraseVariable: 'var3',
>>> usernameVariable: 'var4'),
>>> usernameColonPassword(credentialsId: 'jenkins_robot_for_gitlab', 
>>> variable: 'var5')]) {
>>> configFileProvider([configFile(fileId: 
>>> 'c76d4a37-1233-4f8c-a2bb-e2f9cf4e05b4', replaceTokens: true, 
>>> targetLocation: 'test.txt', variable: 'testfile')]) {
>>> sh 'cat $testfile'
>>> echo "var1: $var1"
>>> echo "var2: $var2"
>>> echo "var5: $var5"
>>> }
>>> }
>>> }
>>> 
>>> stage('test with env provider') {
>>> withEnv(['var1=bla', 'var2=blubb', 'undefined=isdefined']) {
>>> configFileProvider([configFile(fileId: 
>>> 'c76d4a37-1233-4f8c-a2bb-e2f9cf4e05b4', replaceTokens: true, 
>>> targetLocation: 'test.txt', variable: 'testfile')]) {
>>> sh 'cat $testfile'
>>> echo "var1: $env.var1"
>>> echo "var2: $var2"
>>> }
>>> }
>>> }
>>> }
>>
>>
>> *ENV vars declared at job level:*
>>
>> var1=test
>>> var2=foobar
>>
>>
>> *Config File:*
>>
>> Test for Token replacement on ${ENV, var="JOB_NAME"}
>>> key1: ${ENV, var="var1"}
>>> key2: ${ENV, var="var2"}
>>> key5: ${ENV, var="var5"}
>>> undefined: ${ENV, var="undefined"}
>>
>>
>> *Output:*
>>
>> [Pipeline] node
>>> Running on Jenkins 
>>>  in 
>>> /var/lib/jenkins/workspace/IT/credentials-replacement
>>> [Pipeline] {
>>> [Pipeline] stage
>>> [Pipeline] { (test w/o magic)
>>> [Pipeline] wrap
>>> provisioning config files...
>>> copy managed file [Secret-File] to 
>>> file:/var/lib/jenkins/workspace/IT/credentials-replacement/test.txt
>>> [Pipeline] {
>>> [Pipeline] sh
>>> [credentials-replacement] Running shell script
>>> + cat /var/lib/jenkins/workspace/IT/credentials-replacement/test.txt
>>> Test for Token replacement on IT/credentials-replacement key1: test
>>> key2: foobar
>>> key5: 
>>> undefined: 
>>> [Pipeline] echo
>>> var1: test
>>> [Pipeline] echo
>>> var2: foobar
>>> [Pipeline] }
>>> [Pipeline] // wrap
>>> [Pipeline] }
>>> [Pipeline] // stage
>>> [Pipeline] stage
>>> [Pipeline] { (testwith centials provider)
>>> [Pipeline] withCredentials
>>> [Pipeline] {
>>> [Pipeline] configFileProvider
>>> provisioning config files...
>>> copy managed file [Secret-File] to 
>>> file:/var/lib/jenkins/workspace/IT/credentials-replacement/test.txt
>>> [Pipeline] {
>>> [Pipeline] sh
>>> [credentials-replacement] Running shell script
>>> + cat /var/lib/jenkins/workspace/IT/credentials-replacement/test.txt
>>> Test for Token replacement on IT/credentials-replacement key1: test
>>> key2: foobar
>>> key5: 
>>> undefined: 
>>> [Pipeline] echo
>>> var1: 
>>> [Pipeline] echo
>>> var2: 
>>> [Pipeline] echo
>>> var5: 
>>> [Pipeline] }
>>> [Pipeline] // configFileProvider
>>> [Pipeline] }
>>> [Pipeline] // withCredentials
>>> [Pipeline] }
>>> [Pipeline] // stage
>>> [Pipeline] stage
>>> [Pipeline] { (test with env provider)
>>> [Pipeline] withEnv
>>> [Pipeline] {
>>>