Re: Email ext to send html body in Pipeline

2016-10-14 Thread Sam K
Hmm, not sure what you're asking...but the FILE,path along with the 
mimeType: 'text/html' does send any html file in the body of the email. 

On Friday, October 14, 2016 at 9:57:15 AM UTC-7, jer...@bodycad.com wrote:
>
> Hi,
>
> I found the Jelly script way of doing it, see my post into this forum. 
> does the  '${FILE,path="/tmp/test.html"}' does the Token replacement? can 
> you use any form of script into it (for loop? jelly? groovy?).
>
> 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/2ca41ff1-b7d1-4d79-8273-41c7977d11a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: sshagent with problems to copy files to remote server

2016-10-14 Thread Victor Martinez
did you try to debug that scp command locally with some -v flags?


On Friday, 14 October 2016 22:52:15 UTC+1, Mario Rodriguez wrote:
>
> Hi, I'm trying to use sshagent plugin to copy some generated artifacts 
> from the jenkins server to a remote server, however, I'm missing something 
> on the setup and the build is failing with this "unkown user" error 
> highlighted below
>
> here is the code snippet from my Jenkinsfile
>
> stage 'Deployment to batch server'
> sh "chmod a+x ${workspace}/build/resources/main/deltajob.sh"
>
> sshagent(credentials: ['deploy-batchjob']) {
> sh "scp -o StrictHostKeyChecking=no ${workspace}/build/libs/*-all.jar 
> deploy@batch01:/batch/producer-job/"
> }
>
> "deploy" user is a local account at batch01 remote server.
>
>
> [Pipeline] stage (Deployment to batch server)
> [Pipeline] sh
> [develop] Running shell script
> + chmod a+x 
> /var/jenkins_home/workspace/MyCompany/producer-batch-job/develop/build/resources/main/deltajob.sh
> [Pipeline] sshagent
> [ssh-agent] Using credentials deploy (credential to deploy batch jobs)
> [ssh-agent] Looking for ssh-agent implementation...
> [ssh-agent]   Java/JNR ssh-agent
> [ssh-agent] Skipped registering BouncyCastle, not running on a remote agent
> [ssh-agent] Started.
> [Pipeline] {
> [Pipeline] sh
> [develop] Running shell script
> + scp -o StrictHostKeyChecking=no 
> /var/jenkins_home/workspace/MyCompany/producer-batch-job/develop/build/libs/deltajob-all.jar
>  
>  deploy@batch01:/batch/producer-job/
> *unknown user 16*
> [Pipeline] }
> [Pipeline] // sshagent
>
>
> any ideas ?
>

-- 
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/c92cc6a4-1969-466b-a147-30d17c8dd87d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pipeline - groovy - file paths on windows?

2016-10-14 Thread Jonathan Hodgson
Hi,

I have a bit of code that looks like this

def source_folder_name = "${pwd()}/${destination}"
def source_folder = new File(source_folder_name)
if (!source_folder.exists())
{
echo "Source folder ${source_folder_name} does not exist"
}
else
{
echo "Deleting folder ${source_folder_name}"
source_folder.deleteDir()
}

Now on Linux (on the master) it works fine.

On Windows (on a slave) it insists the folder does not exist, even though 
it does.

The folder is on the local machine in both cases.

I have tried replacing all forward slashes in the path with backslashes, 
and vice-versa but it doesn't seem to make any difference.

Am I missing something?

-- 
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/5c872088-0e5d-4dd3-ab9f-885658813778%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


sshagent with problems to copy files to remote server

2016-10-14 Thread Mario Rodriguez
Hi, I'm trying to use sshagent plugin to copy some generated artifacts from 
the jenkins server to a remote server, however, I'm missing something on 
the setup and the build is failing with this "unkown user" error 
highlighted below

here is the code snippet from my Jenkinsfile

stage 'Deployment to batch server'
sh "chmod a+x ${workspace}/build/resources/main/deltajob.sh"

sshagent(credentials: ['deploy-batchjob']) {
sh "scp -o StrictHostKeyChecking=no ${workspace}/build/libs/*-all.jar 
deploy@batch01:/batch/producer-job/"
}

"deploy" user is a local account at batch01 remote server.


[Pipeline] stage (Deployment to batch server)
[Pipeline] sh
[develop] Running shell script
+ chmod a+x 
/var/jenkins_home/workspace/MyCompany/producer-batch-job/develop/build/resources/main/deltajob.sh
[Pipeline] sshagent
[ssh-agent] Using credentials deploy (credential to deploy batch jobs)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Java/JNR ssh-agent
[ssh-agent] Skipped registering BouncyCastle, not running on a remote agent
[ssh-agent] Started.
[Pipeline] {
[Pipeline] sh
[develop] Running shell script
+ scp -o StrictHostKeyChecking=no 
/var/jenkins_home/workspace/MyCompany/producer-batch-job/develop/build/libs/deltajob-all.jar
 
 deploy@batch01:/batch/producer-job/
*unknown user 16*
[Pipeline] }
[Pipeline] // sshagent


any ideas ?

-- 
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/77b1d139-a074-4593-b8f7-3a996f146388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build only runs with 2 branch specifiers (Git/GitLabs)

2016-10-14 Thread Marcus Meier
I've tried this on Jenkins 2.19.1 and 2.25 (both on Windows installed with 
the MSI), but I'm having the same problem. Is there another Git 
configuration I need to set somewhere? 

My goal is to create a job that builds my dmz branch, then automatically 
merges it into my master branch. I can get the dmz branch to build with the 
trick I've outlined below, however the merge command throws errors that 
origin/master doesn't exist, so I'm wondering if the issues are related.

The main repo is GitLabs Enterprise Edition. I did a default install 
jenkins and added my SSH key to connect to GitLabs.

1. Create New Freestyle Job
2. Add Repo URL
3. Set credentials

There is a Branch Specifier already set by default with a value of 
"*/master"

4. Save the config and run the build. Fails: 

 > C:\Program Files\Git\cmd\git.exe fetch --tags 
 > g...@gitlab.mkmeier.com:msn/gitgud.git +refs/heads/*:refs/remotes/origin/*

 > C:\Program Files\Git\cmd\git.exe config remote.origin.url 
 > g...@gitlab.mkmeier.com:msn/gitgud.git # timeout=10

 > C:\Program Files\Git\cmd\git.exe config --add remote.origin.fetch 
 > +refs/heads/*:refs/remotes/origin/* # timeout=10

 > C:\Program Files\Git\cmd\git.exe config remote.origin.url 
 > g...@gitlab.mkmeier.com:msn/gitgud.git # timeout=10

Fetching upstream changes from g...@gitlab.mkmeier.com:msn/gitgud.git

 > C:\Program Files\Git\cmd\git.exe --version # timeout=10

using GIT_SSH to set credentials SSH Key for GitLabs

 > C:\Program Files\Git\cmd\git.exe fetch --tags 
 > g...@gitlab.mkmeier.com:msn/gitgud.git +refs/heads/*:refs/remotes/origin/*

 > C:\Program Files\Git\cmd\git.exe rev-parse 
 > "refs/remotes/origin/master^{commit}" # timeout=10

 > C:\Program Files\Git\cmd\git.exe rev-parse 
 > "refs/remotes/origin/origin/master^{commit}" # timeout=10

 > C:\Program Files\Git\cmd\git.exe rev-parse "origin/master^{commit}" # 
 > timeout=10

ERROR: Couldn't find any revision to build. Verify the repository and branch 
configuration for this job.

Finished : FAILURE



5. Open config

6. Under branches to build click "Add Branch"

7. Copy/paste "*/master" from the existing Branch Specifier (now there are two 
identical Branch Specifiers in the config)

8. Save and Run the build: Success!!


 > C:\Program Files\Git\cmd\git.exe fetch --tags 
 > g...@gitlab.mkmeier.com:msn/gitgud.git +refs/heads/*:refs/remotes/origin/*

Seen branch in repository origin/dmz

Seen branch in repository origin/master

Seen 2 remote branches

Checking out Revision ccf563e57ccff42045d442e4a4f4354c62401cd7 (origin/master)

 > C:\Program Files\Git\cmd\git.exe config core.sparsecheckout # timeout=10

 > C:\Program Files\Git\cmd\git.exe checkout -f 
 > ccf563e57ccff42045d442e4a4f4354c62401cd7

First time build. Skipping changelog.

Finished: SUCCESS


9. Delete either of the Branch Specifiers and rerun the build, fails again with 
the original error message.



-- 
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/98d25b88-3206-45f7-b711-5feafae87b6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automated Jenkins Plugin/Dependency Management

2016-10-14 Thread Maciej Wiczynski
So.. figures once I posted I found a possible solution.  If I set the 
group(via cookbook attribute) I get a build.gradle that seems to work, 
snippet of rebuild dependency: 
jenkinsPlugins([
group: 'com.sonyericsson.hudson.plugins.rebuild',
name: 'rebuild',
version: 'latest.release'
  ])

So I guess my question is, is there an easy way to find the group for all 
the plugins that don't use 'org.jenkins-ci.plugins'? I think I can look 
in https://updates.jenkins-ci.org/current/update-center.json and find the 
group for each plugin. If this isn't correct way to go about it I would 
appreciate tips on what I should be doing.
Thanks.
-Maciej


On Friday, October 14, 2016 at 4:03:17 PM UTC-4, Maciej Wiczynski wrote:
>
> I found this thread via 
> http://blog.thesparktree.com/post/149039600544/you-dont-know-jenkins-part-1. 
>  I'm new to gradle/jenkins and was trying to do something similar with my 
> setup.  I'm running into problem where some plugins are not found.  I'm not 
> sure how to find or specify where plugins can be found.. this is one error 
> I'm getting about rebuild plugin as example:
>  * What went wrong:
>A problem occurred configuring root project 'jenkins'.
>> Failed to notify project evaluation listener.
>   > Could not resolve all dependencies for configuration 
> ':jenkinsPlugins'.
>  > Could not find any matches for 
> org.jenkins-ci.plugins:rebuild:latest.release as no versions of 
> org.jenkins-ci.plugins:rebuild are available.
> Searched in the following locations:
> 
> http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> 
> http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/
> 
> https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/
> 
> file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> 
> file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/
> 
> https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> 
> https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/
> Required by:
> :jenkins:unspecified
>   > Could not resolve all dependencies for configuration 
> ':jenkinsPlugins'.
>  > Could not find any matches for 
> org.jenkins-ci.plugins:rebuild:latest.release as no versions of 
> org.jenkins-ci.plugins:rebuild are available.
> Searched in the following locations:
> 
> http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> 
> http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/
> 
> https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/
> 
> file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> 
> file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/
> 
> https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
> 
> https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/
>
> I looked in https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/ and 
> don't see rebuild plugin listed.
> I did find it in https://updates.jenkins-ci.org/current/update-center.json 
> but don't see how to set deps in build.gradle file.
> I have tried adding another maven url block under repositories block using 
> different urls, didn't work.  
>
> Thanks.
> -Maciej
>
> On Tuesday, August 30, 2016 at 12:12:27 PM UTC-4, Michael Kobit wrote:
>>
>> My fault explaining that
>>
>> I know that I can extract it using the *jar* command, but I don't get 
>> the same "unzipped" output as running *java -jar jenkins.war*.
>>
>> It looks like this happens because of some magic in 
>> https://github.com/jenkinsci/extras-executable-war that handles the 
>> unpacking and bootstrapping.
>>
>> I'm wondering, is there a similar way to unpack the *jenkins.war* without 
>> actually running the service, so that I can then programmatically configure 
>> the JENKINS_HOME.
>>
>> This might be the wrong approach or the totally wrong idea. I was 
>> probably going to move in the same direction that you said with using the 
>> https://github.com/jenkinsci/gradle-jpi-plugin to handle plugin 
>> dependency resolution, but plugins are not the only thing I want to 
>> configure. The Groovy init.d type scripts work, but it requires Jenkins to 
>> hit a certain lifecycle stage to run.
>>
>> Jenkins just doesn't seem to lend itself well to configuration as code, 
>> but maybe I'm missing something. 
>>
>> On Saturday, August 27, 2016 at 12:43:51 PM UTC-5, Jason Kulatunga 

Re: Automated Jenkins Plugin/Dependency Management

2016-10-14 Thread Maciej Wiczynski
I found this thread via 
http://blog.thesparktree.com/post/149039600544/you-dont-know-jenkins-part-1. 
 I'm new to gradle/jenkins and was trying to do something similar with my 
setup.  I'm running into problem where some plugins are not found.  I'm not 
sure how to find or specify where plugins can be found.. this is one error 
I'm getting about rebuild plugin as example:
 * What went wrong:
   A problem occurred configuring root project 'jenkins'.
   > Failed to notify project evaluation listener.
  > Could not resolve all dependencies for configuration 
':jenkinsPlugins'.
 > Could not find any matches for 
org.jenkins-ci.plugins:rebuild:latest.release as no versions of 
org.jenkins-ci.plugins:rebuild are available.
Searched in the following locations:

http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/maven-metadata.xml

http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/

https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/

file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/maven-metadata.xml

file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/

https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/maven-metadata.xml

https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/
Required by:
:jenkins:unspecified
  > Could not resolve all dependencies for configuration 
':jenkinsPlugins'.
 > Could not find any matches for 
org.jenkins-ci.plugins:rebuild:latest.release as no versions of 
org.jenkins-ci.plugins:rebuild are available.
Searched in the following locations:

http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/maven-metadata.xml

http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/rebuild/

https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/maven-metadata.xml
https://repo1.maven.org/maven2/org/jenkins-ci/plugins/rebuild/

file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/maven-metadata.xml

file:/var/lib/jenkins/.m2/repository/org/jenkins-ci/plugins/rebuild/

https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/maven-metadata.xml

https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/rebuild/

I looked in 
https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/ and don't see 
rebuild plugin listed.
I did find it in https://updates.jenkins-ci.org/current/update-center.json 
but don't see how to set deps in build.gradle file.
I have tried adding another maven url block under repositories block using 
different urls, didn't work.  

Thanks.
-Maciej

On Tuesday, August 30, 2016 at 12:12:27 PM UTC-4, Michael Kobit wrote:
>
> My fault explaining that
>
> I know that I can extract it using the *jar* command, but I don't get the 
> same "unzipped" output as running *java -jar jenkins.war*.
>
> It looks like this happens because of some magic in 
> https://github.com/jenkinsci/extras-executable-war that handles the 
> unpacking and bootstrapping.
>
> I'm wondering, is there a similar way to unpack the *jenkins.war* without 
> actually running the service, so that I can then programmatically configure 
> the JENKINS_HOME.
>
> This might be the wrong approach or the totally wrong idea. I was probably 
> going to move in the same direction that you said with using the 
> https://github.com/jenkinsci/gradle-jpi-plugin to handle plugin 
> dependency resolution, but plugins are not the only thing I want to 
> configure. The Groovy init.d type scripts work, but it requires Jenkins to 
> hit a certain lifecycle stage to run.
>
> Jenkins just doesn't seem to lend itself well to configuration as code, 
> but maybe I'm missing something. 
>
> On Saturday, August 27, 2016 at 12:43:51 PM UTC-5, Jason Kulatunga wrote:
>>
>> Yep, the command is `jar xvf jenkins.war`, that will explode the war into 
>> the current directory. 
>>
>> On Friday, August 26, 2016 at 12:27:00 PM UTC-7, Michael Kobit wrote:
>>>
>>> Is there a way to basically "unzip" the *jenkins.war* so that the 
>>> plugins, workflow-libs, and other parts can be configured before actually 
>>> running the service?
>>>
>>> On Wednesday, August 17, 2016 at 9:36:08 AM UTC-5, Jason Kulatunga wrote:

 Hey,
 Thanks for all the help guys.
 I slept on this idea for a few days because, to be honest I really 
 didn't want to write my own package manager 
 
  and 
 re-invent the wheel. I took a step back and looked at how Jenkins solved 
 this problem for Plugin developers, and I think that we could just 
 piggy-back on 

Re: PermGen issue

2016-10-14 Thread vishad alekh
This jdk upgrade is mainly for application code compilation or Jenkins 
compilation. 



Thanks and Regards 
Vishad Alekh

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: R. Tyler Croy
Sent: Friday 14 October 2016 10:14 PM
To: jenkinsci-users@googlegroups.com
Reply To: jenkinsci-users@googlegroups.com
Subject: Re: PermGen issue

(replies inline)

On Fri, 14 Oct 2016, vishad alekh wrote:

> Hi,
> 
> Yes, I am using multi branch pipeline and also jdk 7. 
> Actually I have made build n compilation job for 3 application. There is a 
> master job which is calling these three jobs in parallel executor. 



For https://ci.jenkins.io we're using Multibranch Pipelines very heavily and I
*believe* that this was putting heavy pressure on the PermGen space in JDK7 and
causing some issues for us.

My solution, as suggested by a few others, was to simply upgrade to JDK8 wihch
has a number of improvements in handling objects which previously were stored
in this PermGen space. I wrote about that here:
http://unethicalblogger.com/2016/10/03/dropin-containerized-jenkins-master.html


If that isn't an option, making the PermGen space much higher might help, but I
*think* that JDK7 simply doesn't clean up the PermGen space properly so you
might still see "leaks."


- R. Tyler Croy

--
Code: 
Chatter: 

% gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--

-- 
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/xjlojjCKPhI/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/20161014164431.GW3357%40blackberry.coupleofllamas.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/20161014193645.5972045.87327.25973%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline emailext template

2016-10-14 Thread jerome
Sweet, thanks you slide for the info!

-- 
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/9d55f57e-78fc-410e-bcd3-f5f409765ee0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline emailext template

2016-10-14 Thread Slide
The groovy templates use just ${SCRIPT, template=""} not GROOVY_SCRIPT

On Fri, Oct 14, 2016, 09:55  wrote:

> just found some info and by trial and error:
> emailext body: '${JELLY_SCRIPT,template="myFilePath.jelly"}'
>
>
>
> I try the old groovy template without success.
> '${GROOVY_SCRIPT,template="myFilePath.template"}'  <-- does not work
>
> I also found that Windows path are not supported \ are not compatible into
> the path, have to replace: mypath.replaceAll('\\', '/')
>
> For the token I'm still checking if everything works but if this may help.
> Also, if a variable is not found, nothing seem to be output or only an
> error sometime. So I' putting back each block per block until I get
> everything back on track.
>
>
> --
> 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/6162c93a-c6ab-4f7c-99b5-3dde199a480e%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/CAPiUgVefJpfGRPNMO_UTv4Bv8xrXt4oBiFWrzyM_cMQL5reXfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-14 Thread jerome
Hi,

I found the Jelly script way of doing it, see my post into this forum. does 
the  '${FILE,path="/tmp/test.html"}' does the Token replacement? can you 
use any form of script into it (for loop? jelly? groovy?).

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/b11ce98d-fb8e-4464-a085-32b3ecada1c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline emailext template

2016-10-14 Thread jerome
just found some info and by trial and error:
emailext body: '${JELLY_SCRIPT,template="myFilePath.jelly"}'



I try the old groovy template without success. 
'${GROOVY_SCRIPT,template="myFilePath.template"}'  <-- does not work

I also found that Windows path are not supported \ are not compatible into 
the path, have to replace: mypath.replaceAll('\\', '/')

For the token I'm still checking if everything works but if this may help. 
Also, if a variable is not found, nothing seem to be output or only an 
error sometime. So I' putting back each block per block until I get 
everything back on track.


-- 
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/6162c93a-c6ab-4f7c-99b5-3dde199a480e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-14 Thread Sreeram Krishna
You are right! It has been added. But when I use the file for the body:, it
was sending me the actual content of the html file as text file.

I was using contentType: 'HTML' after trying to look at the code in github,
but it really needed mimeType to get it working.  I wish there is a way to
mark the threads as 'SOLVED' like on stackoverflow so people can look at
threads with solved answers.

emailext  *mimeType: 'text/html'*, body: '${FILE,path="/tmp/test.html"}',
subject: 'Test', to: 'skris...@ss8.com'

On Thu, Oct 13, 2016 at 7:10 AM, Slide  wrote:

> I believe that was added in 2.50 that was released recently.
>
> On Wed, Oct 12, 2016, 13:57 Sam K  wrote:
>
>> Is there a plan to allow the ${FILE,path="${DIR}/test.html"} option that
>> is already available in the plugin?  That is EXACTLY what most would want I
>> presume.  :)
>>
>>
>> On Tuesday, October 11, 2016 at 11:26:58 AM UTC-7, Sam K wrote:
>>
>> Thanks for bringing this to my attention Mark.  I was not aware of that.
>> The jelly scripts are great which send predefined content.  In my case, I
>> am generating content which I want to send in the body.
>>
>> I am trying to work with mutt email client but having other roadblocks.
>>  :(
>>
>> On Tuesday, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote:
>>
>> Support for templates was added in 2.50 if that helps.
>>
>> On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>>
>> This works for most part.  Except, I have a html formatted file which I
>> would like to send as the body.  Is it possible?  Thanks
>>
>> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' +
>> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH
>> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>>
>> --
>> 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/ba748cfd-f69b-485c-b797-
>> 51572934e22b%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/I9c4o4qiE10/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/CAPiUgVeRPtjirXNfbWPCbtP0vu%
> 3Dbmed9PjDVLrjX8ZC7Kw8%2BEA%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/CAKn1gMv-wY%2B%2BrHnuij%3DKYtbHx6cKRsHy6Rw5qJH%3D8CbN%2Bs%2B7SA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Restricting job list permission using Role-Based Strategy

2016-10-14 Thread Brian Ray
The wiki page for the plugin 
 
describes how to restrict user access to certain jobs (projects).

Note the warning about global roles superseding project roles 

.

On Thursday, October 13, 2016 at 11:59:15 PM UTC-7, Maneesh M P wrote:
>
> Hello,
>
> We are using Role Based Strategy plugin for our authorization. The problem 
> I am currently facing is, I am unable to restrict user to view jobs only 
> which he is authorized to.
> With my current configuration a logged in user can see all the jobs, 
> though he wont have any other permission to execute or configure etc.
>
> Is there a way I can control the job listing also with Role Based strategy 
> plugin ?
>
> Thanks,
> Maneesh
>
>

-- 
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/e6886cf9-3e61-431f-965b-b4b3fdbaf23d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Groovy Madness

2016-10-14 Thread Brian Ray
Keep an eye on JENKINS-35390 
.

Though the other day I optimistically tried to use Groovy's AST transform 
@Immutable 
 
on a class ... should've known that would not play nicely with the CPS 
transforms.

On Friday, October 14, 2016 at 8:33:49 AM UTC-7, Jonathan Hodgson wrote:
>
>
>
> On Friday, October 14, 2016 at 1:47:24 PM UTC+1, Daniel Beck wrote:
>>
>>
>> > On 14.10.2016, at 13:25, Jonathan Hodgson  wrote: 
>> > 
>> > All I've done is move that one line, and for the record at the moment 
>> it's being called without OSX being active, so nothing inside that first if 
>> statement is being executed (though it shouldn't cause any problems even if 
>> its was) 
>> > 
>> > I'm confused, and frustrated. Any help greatly appreciated. 
>>
>> The last statement in a Groovy method is the implicit return value. 
>> `find` returns a LinkedHashMap$Entry, it gets returned from the method 
>> call, and it breaks due to CPS serialization. 
>>
>> Thanks Daniel, I'm still finding my feet with Groovy, throw in the CPS 
> issues plus other pipeline job problems (e.g. the lack of working file 
> parameters) and I find myself going round and round until I don't know 
> which way is up, down or sideways.
>
> Changing things to
>
> @NonCPS def isPlatformActive(platform, active_builds)
> {
> found = (null != active_builds[platform].find { it.value == true } )
> found
> }
>
> Seems to have fixed this issue
>
>
>> Regarding the regression, likely due to 
>> https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Groovy+Plugin#PipelineGroovyPlugin-2.14%28Sep07%2C2016%29
>>  
>>
>>
> Thanks again.
>
> It's the lack of consistency which is driving me nuts, things work in one 
> place, but not another, or they work with one version, but not the next. It 
> makes debugging so hard. 
>
> And for the love of God could somebody please implement some useful error 
> messages!?
>
> Things should either work, or not work with a suitable error message.
>
> I don't know how difficult it would be, but a lint style checker that 
> would pick up forbidden constructs in CPS functions would be nice too... 
> but there I'm getting into dreamland I fear.
>

-- 
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/02e75241-3f24-4e97-b446-aa145870995a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Groovy Madness

2016-10-14 Thread Jonathan Hodgson


On Friday, October 14, 2016 at 1:47:24 PM UTC+1, Daniel Beck wrote:
>
>
> > On 14.10.2016, at 13:25, Jonathan Hodgson  > wrote: 
> > 
> > All I've done is move that one line, and for the record at the moment 
> it's being called without OSX being active, so nothing inside that first if 
> statement is being executed (though it shouldn't cause any problems even if 
> its was) 
> > 
> > I'm confused, and frustrated. Any help greatly appreciated. 
>
> The last statement in a Groovy method is the implicit return value. `find` 
> returns a LinkedHashMap$Entry, it gets returned from the method call, and 
> it breaks due to CPS serialization. 
>
> Thanks Daniel, I'm still finding my feet with Groovy, throw in the CPS 
issues plus other pipeline job problems (e.g. the lack of working file 
parameters) and I find myself going round and round until I don't know 
which way is up, down or sideways.

Changing things to

@NonCPS def isPlatformActive(platform, active_builds)
{
found = (null != active_builds[platform].find { it.value == true } )
found
}

Seems to have fixed this issue


> Regarding the regression, likely due to 
> https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Groovy+Plugin#PipelineGroovyPlugin-2.14%28Sep07%2C2016%29
>  
>
>
Thanks again.

It's the lack of consistency which is driving me nuts, things work in one 
place, but not another, or they work with one version, but not the next. It 
makes debugging so hard. 

And for the love of God could somebody please implement some useful error 
messages!?

Things should either work, or not work with a suitable error message.

I don't know how difficult it would be, but a lint style checker that would 
pick up forbidden constructs in CPS functions would be nice too... but 
there I'm getting into dreamland I fear.

-- 
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/1ae9dabb-9b29-43a0-a440-371bb79695f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Running only one instance of a job

2016-10-14 Thread Paxton, Darren
Hi

I've got a lot of jobs that rebuild docker images - part of this involves a 
security scan of those images to see if there are any CVEs contained within.

I'm trying to figure out a workflow where I can take the failure of the scan to 
force a resync from our upstream vendor for packages however we have multiple 
image jobs.

I'd like to implement kicking off a resync on the failure of the first of those 
jobs and for each subsequent job, it checks if the sync job is running and if 
so, it silently skips by. At first I thought setting a conditional build on the 
sync job and putting a file in place so that it wouldn't run if it sees that 
file, but subsequent runs of the same job just get queued and so would likely 
succeed.

Does anyone have any offerings or advice on a plugin that would check the 
running jobs in the queue and if they match a pattern, they either abort the 
job or something else? Build blocker almost looked like what I require however 
if I understand it correctly, it would only block until the job leaves the 
queue and would then be released.

Any help 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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e985bc188c3f426981c7139445cde382%40GBBED11XG20CN04.mercer.com.
For more options, visit https://groups.google.com/d/optout.


pipeline emailext template

2016-10-14 Thread jerome
Hi,
I have update to emailext 2.51 which seem to now support the template. but 
I failed to see how to use them or provide it to the emailext call??? I 
look at the http://myJenkinsserver/myproject/pipeline-syntax/html  but 
without any luck, the plugin only doc don't say much else then the problems 
is fix.

I would like to replace my manual template read and replace with it and use 
the old groovy template. Is this compatible with both groovy and Jelly 
template?  we used the groovy template before pipeline (as matter of fact 
multiple of them, but that's another story).

Any pointer of how and what to do to use it would be welcome.

I'm suspecting I can leave the token/script into the email body and subject 
and they will be parsed? so I could only read the template and give it to 
the emailext command? I would be trying to guess by trial and errors but if 
anybody have pointer that would be welcome.

Jerome

-- 
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/391c886f-2d42-450a-b25b-bc00b98fdf32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline LogParserPublisher weird behavior

2016-10-14 Thread jerome
Hi,
Thanks for adding the unstableOnWarning to the LogParserPublisher, this was 
awaited feature, nice. But I have a problem with the following situation 
which doesn't make much sense to me:

step([$class: 'LogParserPublisher', parsingRulesPath: 'myrule.txt', 
useProjectRule: false, failBuildOnError: false, unstableOnWarning: true]);

If use like this: 

   1. 0 errors, 0 warnings = success, good
   2. 0 errors, >0 warnings = unstable, good
   3. >0 errors, 0 warnings = success !! now this is strange

I think it should be at least unstable for the last one (#3). Would be 
really nice to make build unstable upon warning and error. In fact specify 
the error level upon finding the kind of level parsed would be nice.

properties:

   1. errorMarkBuild: "FAILURE"
   2. warningMarkBuild: "UNSTABLE"
   3. infoMarkBuild: "SUCCESS"
   

this way the script can specify any wanted level per parsed results.

I still thing it would be nice to have this per stage and output multiple 
of them just like the HtmlPublisher.

I have some parsing I want to warn when doing the lint on tests files I 
output warnings, but for the real code I may want to do an errors.

*P.S.:* anybody known what the showGraphs: true is suppose to do exactly? I 
haven't see any difference by using it or not ?!? I don't see any graph 
anywhere? I was expecting errors/warnings count between build or something 
like that. (BTW I'm up to date with current release of Jenkins 2.25 and 
plugins @ 2016-10-14 @10h35 EST)

Thanks,
Jerome

-- 
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/694edde9-c28a-4e30-b8bb-41368d38f80f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any tips on how to test Jenkins/Plugin updates before commiting to them?

2016-10-14 Thread Victor Martinez
You could bump a local instance with docker easily then you could test your 
changes before applying them to confirm those plugins are safe enough:
- https://hub.docker.com/_/jenkins/

There is a plugins.txt file where you can add any specific plugin and its 
version and then docker run.

Cheers
On Friday, 14 October 2016 11:23:35 UTC+1, Jonathan Hodgson wrote:
>
> Hi,
>
> I've recently encountered issues because updates to Jenkins and/or plugins 
> have broken things that were previously working.
>
> When my autobuild goes live, this would be bad news indeed.
>
> So ideally I need to test updates before making them live. Probably 
> running a full set of builds over the weekend.
>
> Does that mean I have to have a second installation of Jenkins and copy 
> data over to it?
>
> regards
>
> Jon
>

-- 
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/7afceeb2-9e7e-42b3-8627-3aa0e28e77a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Docker Slaves plugin - how to specify volumes

2016-10-14 Thread Qiang
hi,

How can I set container options to the Docker slave such as volume 
settings? I need to mount a host directory to the container.

So far, the only option I can see is to define the slave container image, 
and side container image as following:

  dockerNode(image: "maven:3.3.3-jdk-8", sideContainers: 
["selenium/standalone-firefox"]) 

How do I pass "-v" or "--volumes-from" to the slave container?

Regards,
Qiang


-- 
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/7c7f4f1b-6d12-4b6f-8662-728add4df6ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multibranch Pipeline Not Honoring Git Timeout During Branch Indexing

2016-10-14 Thread David Johnson

Hey all,

I am trying to set up a multibranch pipeline job against a fairly large 
repo. I have set both the fetch and checkout timeouts to 180 minutes 
under the Advanced Clone Behaviors and Advanced Checkout Behaviors, to 
no avail. Whenever the branch indexing job begins it reports that my 
timeouts are set to 10 minutes and sure enough, after 10 minutes the job 
fails as follows.


I am curious if there is some other configuration that I need to do in 
order to get this to work properly? Whenever I try this on a smaller 
repo with fewer branches I am able to see the branch indexing go through 
successfully.


 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to 
 > git config remote.origin.url  # timeout=10
Fetching & pruning origin...
Fetching upstream changes from origin
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* 
--prune
ERROR: Timeout after 10 minutes
FATAL: Failed to recompute children of Multibranch_Pipeline
hudson.plugins.git.GitException: Command "git fetch --tags --progress origin 
+refs/heads/*:refs/remotes/origin/* --prune" returned status code 143:

fatal: The remote end hung up unexpectedly
fatal: early EOF

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
at 
jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:233)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:148)
at 
jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
at 
com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
at 
com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
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/b5cc5934-92b2-0009-249f-39f00f7bc97a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Monitoring network folder using FSTrigger plugin

2016-10-14 Thread Ram D
Hi All,

Greetings!
Use case: I have to monitor (polling folder) a network folder for build
artifacts (.zip files). When ever there is new .zip file I have to copy it
and trigger downstream builds.

Solution: FSTrigger plugin - seems to do the work of polling folder and and
if changes present in target, build is triggered.

Question: How do I provide a network path for polling which requires
username and password to access it. e.g. *\\100.1.1.1\abc\pqr\xyz\pqr\*.zip*


If I open this in file system explorer it asks for username (with domain)
and password in order to open it. How to pass such parameters in FSTrigger
 plugin.

More info: https://wiki.jenkins-ci.org/display/JENKINS/FSTrigger+Plugin

Any help or suggestions appreciated.

Regards,
Ramesh

-- 
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/CAAyu-G4t9hQpz1BsUehL7AuUN6B-%2BAi8j1P-1Ui%3DsYfvmgtw8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


UI is not visible during execution when running jobs from Jenkins as service

2016-10-14 Thread Ranjit kumar Kundu
When I am running jobs from Jenkins ( installed as service in my remote 
machine) browser is not visible. 

-- 
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/472db3a3-6a08-489a-8e6d-9f819ac784bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Groovy Madness

2016-10-14 Thread Daniel Beck

> On 14.10.2016, at 13:25, Jonathan Hodgson  wrote:
> 
> All I've done is move that one line, and for the record at the moment it's 
> being called without OSX being active, so nothing inside that first if 
> statement is being executed (though it shouldn't cause any problems even if 
> its was)
> 
> I'm confused, and frustrated. Any help greatly appreciated.

The last statement in a Groovy method is the implicit return value. `find` 
returns a LinkedHashMap$Entry, it gets returned from the method call, and it 
breaks due to CPS serialization.

http://groovy-lang.org/semantics.html#_optional_return_keyword

Regarding the regression, likely due to 
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Groovy+Plugin#PipelineGroovyPlugin-2.14%28Sep07%2C2016%29

-- 
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/B32FE469-5ECF-4533-8B3C-D868007700DE%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Unable To execute SCons script in jenkins

2016-10-14 Thread Umamaheswari G
Hi Rachel,

Thanks for the help. It does work.  Following is the console output.



[workspace] $ scons -f "scons -f /Users/Uma/.jenkins/jobs/Sample/workspace"
scons: Reading SConscript files ...

scons: warning: Ignoring missing SConscript 'scons -f
/Users/Uma/.jenkins/Sample/New/workspace'
File "/usr/local/bin/scons", line 199, in 
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
Finished: SUCCESS


I intentionally made some mistakes in my code.  What I was expecting
is some error message while building with icons.


But What I was expecting is


scons: Reading SConscript files ...

scons: done reading SConscript files.

scons: Building targets ...

g++ -o Demo/Bed.o -c -Wall -ansi -pedantic -O2 -lX11 -std=c++11
-DSETTINGS_DEVELOPMENT -DUSER_UMA -I/opt/local/include
-Iusr/include/boost/system -I/usr/include/boost
-I/usr/include/boost/test -I/usr/include/boost/timer
-I/opt/local/include/mariadb/mysql -I/opt/local/include/freetype2
-Irapidxml -Ilru_cache Demo/Bed.cpp

clang: warning: -lX11: 'linker' input unused

Demo/Bed.cpp:23:6: error: C++ requires a type specifier for all declarations

Bed::getBedSize(){

 ^

1 error generated.

scons: *** [Demo/Bed.o] Error 1

scons: building terminated because of errors.


I guess it is not executing the scons command in my workspace in which
I have my SConstruct file.


Thanks

Uma


On Thu, Oct 13, 2016 at 10:22 PM, Rachel 
wrote:

> Hi,
>
> Yes, that's the reason. If you remove the build step about SCons, you'll
> have to add a new step:
>
>- Add build step > Execute shell
>
> and write the SCons command:
>
> scons -f /Users/Uma/.jenkins/jobs/Sample/workspace
>
>
> or in a smart way:
>
> scons -f $WORKSPACE
>
>
> I think you don't need to re-define an environment variable.
>
> I hope be useful.
>
> Best regards,
> Rachel
>
> El jueves, 13 de octubre de 2016, 10:58:47 (UTC+2), Uma escribió:
>
>> Hi,
>>
>> I have tried removing the build step in  my project->configure->Build.
>>
>> Now the console output is
>>
>> Started by user Administrator 
>>
>> Building in workspace /Users/Shared/Jenkins/Home/workspace/TestProject
>>  > git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>>  > git config remote.origin.url https://github.com/guma-005/JenkinsDemo.git 
>> # timeout=10
>> Fetching upstream changes from https://github.com/guma-005/JenkinsDemo.git
>>  > git --version # timeout=10
>>  > git fetch --tags --progress https://github.com/guma-005/JenkinsDemo.git 
>> +refs/heads/*:refs/remotes/origin/*
>>  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
>>  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
>> Checking out Revision 79d8e3a80aa4b114f72ad383f985028838f26ab0 
>> (refs/remotes/origin/master)
>>  > git config core.sparsecheckout # timeout=10
>>  > git checkout -f 79d8e3a80aa4b114f72ad383f985028838f26ab0
>>  > git rev-list 79d8e3a80aa4b114f72ad383f985028838f26ab0 # timeout=10
>> Finished: SUCCESS
>>
>>
>> (Sorry I created another job with same code and everything)
>>
>>
>> Project Structure in Git :
>>— SConstruct
>>— Demo
>>—  Files.cpp
>>—  Files.hpp
>>
>> Environment variables
>>   List of variables
>>   Name
>>   Value
>>
>> Delete
>>
>>
>>
>>
>>
>>
>>
>>   Home directory /Users/Shared/Jenkins/Home [image: Help for feature: Home 
>> directory] 
>>   Workspace Root Directory  [image: Help for feature: Workspace Root 
>> Directory] 
>>   Build Record Root Directory  [image: Help for feature: Build Record Root 
>> Directory] 
>>
>>
>> It seems it not even running Scons script in my workspace. If so why it 
>> return SUCCESS?
>> Thanks in advance.
>>
>>
>> On Wed, Oct 12, 2016 at 9:14 PM, Rachel  wrote:
>>
>>> Hi Uma,
>>>
>>> I've used those steps for creating new environment variables in Jenkins,
>>> but not for overwriting PATH, althouth you might use:
>>>
>>> Value = $PATH:/adding/new/path/
>>>
>>> in order not to lose previous value of PATH. Anyway, if scons is located
>>> in /usr/local/bin (as you indicated), Jenkins would have to find it,
>>> because that path is usually into PATH variable.
>>>
>>> From your output, I guess you're using SCons Plugin. Although it's not
>>> necessary in this case, try to configure "SCons Executable Path" in "Global
>>> Configuration" (https://wiki.jenkins-ci.org/p
>>> ages/viewpage.action?pageId=42470444) with /usr/local/bin (without
>>> /scons).
>>>
>>> If problem persists, maybe it's a bug of SCons Plugin. Try to execute
>>> SCons through:
>>>
>>>- Add build step > Execute shell
>>>
>>> Tell us 

Pipeline Groovy Madness

2016-10-14 Thread Jonathan Hodgson
Hi,

I'm trying to get some Groovy code working in the pipeline.

The code used to work fine, somewhere in the endless stream of updates of 
jenkins and plugins, it stopped.

It used to look like this (I've stripped the bits that do actual work out 
for brevity)

@NonCPS def isPlatformActive(platform, active_builds)
{
found = active_builds[platform].find { it.value == true } 
found
}

def buildAll(build_types, active_builds, plugin_formats)
{
stage ("Building And Testing") {
platform_builders = [:]
something_failed = false
failed_message = ""
if (isPlatformActive("OSX", active_builds))
{
platform_builders ["Mac"] = {
node ("XCode")
{
ws (project_workspace) {
echo "Substage running on OSX"
}
}
}
}
if (isPlatformActive("Win32", active_builds) || 
isPlatformActive("Win64", active_builds))
{
platform_builders ["Windows"] = { 
node ("VS2013")
{
ws (project_workspace) {
echo "Substage running on Windows"
}
}
}
}
   }
}

And it used to work.

But then when I came back to it, I found I was getting an exception
An Error Occured java.io.NotSerializableException: 
java.util.LinkedHashMap$Entry

So, putting this down to the known issue with Groovy in the pipeline I 
changed isPlatformActive to a @NonCPS function, which worked find so long 
as the second if statement was commented out, but not when I uncommented it.

After further experimentation I've found that this works

@NonCPS def isPlatformActive(platform, active_builds)
{
found = active_builds[platform].find { it.value == true } 
found
}

def buildAll(build_types, active_builds, plugin_formats)
{
stage ("Building And Testing") {
platform_builders = [:]
something_failed = false
failed_message = ""
isPlatformActive("Win32", active_builds) // Just in here to test 
nothing goes wrong - it doesn't
if (isPlatformActive("OSX", active_builds))
{
platform_builders ["Mac"] = {
node ("XCode")
{
ws (project_workspace) {
echo "Substage running on OSX"
}
}
}
}
   }
}

But this doesn't
@NonCPS def isPlatformActive(platform, active_builds)
{
found = active_builds[platform].find { it.value == true } 
found
}

def buildAll(build_types, active_builds, plugin_formats)
{
stage ("Building And Testing") {
platform_builders = [:]
something_failed = false
failed_message = ""
   if (isPlatformActive("OSX", active_builds))
{
platform_builders ["Mac"] = {
node ("XCode")
{
ws (project_workspace) {
echo "Substage running on OSX"
}
}
}
}
isPlatformActive("Win32", active_builds) // Just in here to test 
nothing goes wrong - IT DOES
   }
}


I get

java.io.NotSerializableException: java.util.LinkedHashMap$Entry
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:343)
at java.util.HashMap.writeObject(HashMap.java:1129)
at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
at 

Re: Is there any way to make eclipse run Groovy with the same limiyations as the Pipeline Plugin?

2016-10-14 Thread Mark Waite
I don't know of a way to make eclipse run the same groovy as Jenkins, but
the "Replay" button in Jenkins has made my debugging much faster. I can
remove build stages and change arguments for faster iteration on
experiments.

Mark Waite

On Fri, Oct 14, 2016, 4:16 AM Jonathan Hodgson 
wrote:

> Hi,
>
> Testing out new Groovy code inside Jenkins is slow and painful. Whereas I
> can run a bit of code in a second on my local system inside Eclipse, it can
> be minutes on Jenkins (because it is part of a build), even if I strip
> everything out that I possibly can it's at least an order of magnitude
> greater. As a newbie to Groovy it can take me a number of iterattions to
> get things right (especially given the issue I'll talk abiout next), so
> being able to test code on my local machine would be MUCH better.
>
> Unfortunately, Groovy in the pipeline is a bit broken,
>
> https://issues.jenkins-ci.org/browse/JENKINS-35390
>
> There are workarounds, but if the problems only happen inside the
> pipeline, that that a lot of the development/debug iterations have to
> happen on the server.
>
> Things would progress much faster if I had a local implementation of
> Groovy that aped the one in the pipeline
>
> --
> 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/3f495101-b785-4549-8885-2c282e464c18%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/CAO49JtHkr030RvckPwF%2BB_0w%2Bp_Pc2DPWE%2BNS%3DL_ad2kdG8ZJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Any tips on how to test Jenkins/Plugin updates before commiting to them?

2016-10-14 Thread Jonathan Hodgson
Hi,

I've recently encountered issues because updates to Jenkins and/or plugins 
have broken things that were previously working.

When my autobuild goes live, this would be bad news indeed.

So ideally I need to test updates before making them live. Probably running 
a full set of builds over the weekend.

Does that mean I have to have a second installation of Jenkins and copy 
data over to it?

regards

Jon

-- 
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/2ed6f87f-33ce-46ad-9d18-320f6a8a381b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there any way to make eclipse run Groovy with the same limiyations as the Pipeline Plugin?

2016-10-14 Thread Jonathan Hodgson
Hi,

Testing out new Groovy code inside Jenkins is slow and painful. Whereas I 
can run a bit of code in a second on my local system inside Eclipse, it can 
be minutes on Jenkins (because it is part of a build), even if I strip 
everything out that I possibly can it's at least an order of magnitude 
greater. As a newbie to Groovy it can take me a number of iterattions to 
get things right (especially given the issue I'll talk abiout next), so 
being able to test code on my local machine would be MUCH better.

Unfortunately, Groovy in the pipeline is a bit broken, 

https://issues.jenkins-ci.org/browse/JENKINS-35390

There are workarounds, but if the problems only happen inside the pipeline, 
that that a lot of the development/debug iterations have to happen on the 
server.

Things would progress much faster if I had a local implementation of Groovy 
that aped the one in the pipeline

-- 
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/3f495101-b785-4549-8885-2c282e464c18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: docker: command not found ( Mac mini + Jenkins )

2016-10-14 Thread 80Vikram
Thanks Victor.

I got it working as mentioned in below ticket

https://github.com/docker/for-mac/issues/799

Docker documentation wrt Jenkins and Mac setup , hardly has any info.

Regards,
Vikram

On Thursday, October 13, 2016 at 5:13:20 PM UTC+2, Victor Martinez wrote:
>
> Environment variables when connecting ssh slaves might be a bit different, 
> as far as I know those ssh connections are not interactive therefore you 
> need to review whether that Docker binary is part of any of the paths of 
> the PATH variable.
>
> There are some references in the below link for instance:
>
>
> http://unix.stackexchange.com/questions/164779/jenkins-does-not-use-systems-locales
>
> 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/b20ddc5f-4af8-4506-83da-fff86e949bce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: touble with push hook from github enterprise

2016-10-14 Thread Victor Martinez
Hi Daniel,

You can see what's going on if you go to the Manage page -> GitHub Hooks 
Problems page

or directly by clicking 
on: 
https://YOUR_JENKINS_SERVER/administrativeMonitor/GitHubHookRegisterProblemMonitor/

Cheers

On Thursday, 13 October 2016 16:30:43 UTC+1, Watrous, Daniel wrote:
>
> Hi,
>
>  
>
> I’m using github enterprise (GHE) and Jenkins 2.17. I have a working 
> parameterized pipeline. Now I’m interested in having that run every time 
> code is pushed to GHE. I have the GHE side setup to send a push 
> notification.
>
>  
>
>  
>
> The green checkmark seems to suggest that GHE can successfully post the 
> event to Jenkins.
>
>  
>
> I have checked the box to have the build trigger when a change is pushed.
>
>  
>
>  
>
> *Hook for repo it-cloud-services/cloud-portal-automation-api on 
> github.hpe.com  failed to be registered or were 
> removed. More info can be found on global manage page. This message will be 
> dismissed if Jenkins receives a PING event from repo or repo will be 
> ignored in global configuration.*
>
>  
>
> I can’t find much information on this error and I’m not sure where to go 
> next. Any ideas to help me troubleshoot this?
>
>  
>
> Thanks,
>
> Daniel
>

-- 
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/658de978-5119-4b67-bc4a-573b93a1e4fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: RPM installation on openSUSE fails

2016-10-14 Thread Daniel Beck
The HTTPS URL forwards to an HTTP URL and that seems to be rejected client-side 
(see error message).

> On 13.10.2016, at 01:39, Gurumoorthy Raghupathy  wrote:
> 
> I am getting this as well 
> 
> On Wednesday, October 12, 2016 at 9:39:18 AM UTC+1, Andi wrote:
> Hi,
> 
> on my openSUSE system the installation fails.
> I have executed the following steps:
> linux-1zso:~ # sudo zypper addrepo -f https://pkg.jenkins.io/opensuse-stable/ 
> jenkins
> Repository 'jenkins' hinzufügen 
> ...[fertig]
> Repository 'jenkins' erfolgreich hinzugefügt
> Aktiviert   : Ja 
> Automatische Aktualisierung : Ja 
> GPG-Überprüfung : Ja 
> Priorität   : 99 
> URI : https://pkg.jenkins.io/opensuse-stable/
> 
> linux-1zso:~ # zypper install jenkins
> ...
> Abrufen: jenkins-2.19.1-1.2.noarch.rpm 
> [Fehler]
> Fehler beim Download (curl) für 
> 'https://pkg.jenkins.io/opensuse-stable/jenkins-2.19.1-1.2.noarch.rpm':
> Fehlercode: ' Bad URL'
> Fehlermeldung: 'Protocol http not supported or disabled in libcurl'
> 
> I found out, that this error may be related to some quotation issues in the 
> call of the curl command. Is that true? Is someone else facing this problem?
> 
> linux-1zso:~ # uname -mrs
> Linux 4.4.22-1-default x86_64
> 
> Regards
> Andi
> 
> 
> 
> -- 
> 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/68329e3b-d1eb-4c05-bf2d-db72e37d8e0b%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/C406AF0D-6427-4FD2-B29B-F847C9DEBCBA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Access Jenkins service remotely by IP address

2016-10-14 Thread Ranjit kumar Kundu
I want to access the Jenkins service installed in my remote server by using 
the IP address . How to configure it ???

-- 
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/b50048d3-cd73-4c97-a8ba-2b7c0caa24fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins is slow at fisrt connection

2016-10-14 Thread ycollet

Still slow without gravatar plugin ...

Le vendredi 14 octobre 2016 08:27:27 UTC+2, ycollet a écrit :
>
> Hello,
>
> I noticed that for some times now, jenkins is quite slow on first 
> connection. After the first connection, jenkins is quick to react.
> I was looking in the logs of jenkins and I noticed this:
>
> Infos: Started Gravatar periodic lookup
> oct. 14, 2016 8:23:56 AM hudson.model.AsyncPeriodicWork$1 run
> Infos: Finished Gravatar periodic lookup. 29 271 ms
>
> I will try to remove the plugin related to gravatar and see what happens.
>
> Yann
>

-- 
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/9a6a7c06-15f3-43d7-838d-54b7353ab445%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SonarQube Scanner for Jenkins 2.5-rc2 with pipeline support

2016-10-14 Thread Julien HENRY
Hi,

Based on feedback we get during first release candidate, we decided to 
simplify our DSL compared to the first release candidate and now heavily 
rely on sh/bat steps instead of providing one specific step for each 
SonarQube scanner. As a result, here is a new releease candidate you can 
test:
https://repox.sonarsource.com/sonarsource-public-builds/org/jenkins-ci/plugins/sonar/2.5-build975/sonar-2.5-build975.hpi

Only remains the *withSonarQubeEnv *closure that will inject your SonarQube 
server connection details into some environment variables that latest 
versions of SonarQube scanners (CLI, Maven, Ant, Gradle, MSBuild, ...) are 
automatically picking.

And here are the updated DSL snippets (you should of course replace 'sh' by 
'bat' on Windows):

1) Using SonarQube Scanner (requires SonarQube Scanner 2.8+):

node {
  git 'https://github.com/foo/bar.git'
  def scannerHome = tool 'SonarQube Scanner 2.8';
  *withSonarQubeEnv* {
sh "${scannerHome}/bin/sonar-scanner"
  }
}

2) Using Gradle (requires SonarQube Scanner for Gradle 2.1+):

node {
  git 'https://github.com/foo/bar.git'
  *withSonarQubeEnv* {
sh './gradlew sonarqube' 
  }
}

2) Using Maven (requires SonarQube Scanner for Maven 3.2+):

node {
  git 'https://github.com/foo/bar.git'
  *withSonarQubeEnv* {
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.1.1:sonar' 
  }
}
If you want to use a specific JDK / Maven version, please read: 
https://jenkins.io/doc/pipeline/examples/#maven-and-jdk-specific-version

3) For MSBuild projects

node {
  git 'https://github.com/foo/bar.git'
  def sqScannerMsBuildHome = tool 'Scanner for MSBuild 2.1'
*withSonarQubeEnv* {
bat "${sqScannerMsBuildHome}\\MSBuild.SonarQube.Runner.exe begin 
/k:myKey /n:myName /v:1.0 /d:sonar.host.url=%SONAR_HOST_URL% 
/d:sonar.login=%SONAR_AUTH_TOKEN%"
bat 'MSBuild.exe /t:Rebuild'
bat "${sqScannerMsBuildHome}\\MSBuild.SonarQube.Runner.exe end 
/d:sonar.login=%SONAR_AUTH_TOKEN%"
  }
}

Once Scanner for MSBuild 2.2 will be released, you'll be able to use:
node {
  git 'https://github.com/foo/bar.git'
  def sqScannerMsBuildHome = tool 'Scanner for MSBuild 2.2'
  *withSonarQubeEnv* {
bat "${sqScannerMsBuildHome}\\MSBuild.SonarQube.Runner.exe begin 
/k:myKey /n:myName /v:1.0"
bat 'MSBuild.exe /t:Rebuild'
bat "${sqScannerMsBuildHome}\\MSBuild.SonarQube.Runner.exe end"
  }
}

Any feedback is welcome. The final release is expected to be done next week.

++

Julien

-- 
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/4e757ec9-8980-426e-b168-7508bb55d439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Restricting job list permission using Role-Based Strategy

2016-10-14 Thread Maneesh M P
Hello,

We are using Role Based Strategy plugin for our authorization. The problem 
I am currently facing is, I am unable to restrict user to view jobs only 
which he is authorized to.
With my current configuration a logged in user can see all the jobs, though 
he wont have any other permission to execute or configure etc.

Is there a way I can control the job listing also with Role Based strategy 
plugin ?

Thanks,
Maneesh

-- 
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/feb41433-c011-4bb4-b3fd-1b3f978d7ba2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins is slow at fisrt connection

2016-10-14 Thread ycollet
Hello,

I noticed that for some times now, jenkins is quite slow on first 
connection. After the first connection, jenkins is quick to react.
I was looking in the logs of jenkins and I noticed this:

Infos: Started Gravatar periodic lookup
oct. 14, 2016 8:23:56 AM hudson.model.AsyncPeriodicWork$1 run
Infos: Finished Gravatar periodic lookup. 29 271 ms

I will try to remove the plugin related to gravatar and see what happens.

Yann

-- 
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/b83d3109-abd9-441e-8c1a-6a87c911d2ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline - keep build forever

2016-10-14 Thread Daniel Beck

> On 13.10.2016, at 13:18, roman.pi...@fluidtime.com wrote:
> 
> Is there any possibility to keep a build forever programmatically after 
> submitting an input approval step?

currentBuild.rawBuild.keepLog(true) should do this.

This requires sandbox script approval.

Should probably be exposed for 'currentBuild' and allowed in the sandbox, so 
please file an RFE.

-- 
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/045BED34-EBFE-4633-BF84-53934D614AFA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.