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

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

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:

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

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" }

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

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

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

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

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

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

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

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: > >

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

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

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

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",

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

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

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

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

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

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,

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

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

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

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

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

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. >

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

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

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

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

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

Re: PermGen issue

2016-10-14 Thread R. Tyler Croy
(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

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

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

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'

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

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: