Re: Using git publisher from a Jenkinsfile pipeline?

2016-08-26 Thread Random Guy
I tried withCredentials() method... its giving an error.. NoSuchMethodError... java.lang.NoSuchMethodError: No such DSL method 'withCredentials' found Here is how my method look withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'myid', usernameVariable: 'USERNAME', pas

Re: Parametrized MultiBranch Pipeline Jobs?

2016-08-26 Thread Michael Lasevich
In case anyone is searching here is my own answer to this question - there is a 'parameter' command in the Pipeline DSL designed for this exact purpose, but there are some gitcha's * First, the code generator generates broken code - so do not trust it. Luckily main issue is easy to fix by repla

How to get total number of concurrent builds running for a job on Jenkins?

2016-08-26 Thread praveen
I would like to monitor how many concurrent builds running for a job on Jenkins using groovy script console. Using this I'm able to get the all running builds status, But I need to get the count of concurrent builds are running for a job. Can someone help me on this? import hudson.model

Active directory plugin failing to connect to the server after restarting Windows Server 2012 R2

2016-08-26 Thread Sai Chaitanya Madala
Hello, I'm facing below error after installing Jenkins. Please let me know how to solve this issue. hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager': Cannot

Parametrized MultiBranch Pipeline Jobs?

2016-08-26 Thread Michael Lasevich
Is it possible to add parameters to a multibranch pipeline job? I am happy with the job running with some sorts of default values when running automatically, but it would be nice to be able to have Jenkinsfile (or even manually) define parameters that could be optionally provided when running

Re: Automated Jenkins Plugin/Dependency Management

2016-08-26 Thread Michael Kobit
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 id

Re: Archive multiple artifacts with same name

2016-08-26 Thread Michael Lasevich
Have you considered creating a temp subdirectory with identity of your OS (can be generated automatically) and then moving your artifacts to that directory and archiving the directory? You end up with artifacts with same names in different directories - easy to browse and link to, and does what

Jenkins-infra question: disabling email notification on watched issues.jenkins-ci.org issues

2016-08-26 Thread Brian Ray
A few weeks ago the JIRA started sending me email notifications on my watched issues. Is there a way to disable these notifications on my JIRA profile? Atlassian's doc suggests not--it advises setting up inbox filters or simply "un-watching" issues when they are no longer of interest. But, mayb

Re: Archive multiple artifacts with same name

2016-08-26 Thread Brian Ray
I can't think of a way around it without naming the artifacts slightly differently. That is frustrating. On Tuesday, August 23, 2016 at 11:39:48 PM UTC-7, Sverre Moe wrote: > > Yes, I am using several stash with different name derived from the slave > name. This helps me to transfer the artifact

Re: [Jenkins-infra] Jenkins installation offline

2016-08-26 Thread Oleg Nenashev
Hi, If you need to install Jenkins offline and then manage plugins on it, the best way would be to use a local update center, through which you can distribute plugins. For example see https://github.com/yandex-qatools/juseppe (Embedded file-based update center). Once you connect Jenkins to such u

Re: Contents of file to be shown in email body with new line or proper line

2016-08-26 Thread Dattatreyac Shekar
Plain text. It is a just a Text file with few lines. The new lines are not getting honoured. On Fri, Aug 26, 2016 at 8:05 PM, Slide wrote: > Are you using plain text or html emails? If html, wrap a > around it > > On Fri, Aug 26, 2016, 04:58 Dattatreyac Shekar > wrote: > >> *Scenario :* >> Inv

Re: How to find who's the master of a given slave?

2016-08-26 Thread geoffroy . jabouley
Hi maybe you can check the command line executed to run the jenkins slave. At least for java web start slaves, there is a jnlpurl options which contains url to the master. Not sure about windows services and linux ssh slaves. BR Le vendredi 26 août 2016 17:08:24 UTC+2, Tamir Gefen a écrit : > >

pipeline bat return -1 without any info, cmd work into cmd.exe

2016-08-26 Thread jerome
Hi, I have the following simple script (I reduce the number of output to debug it to a single file): node { bat "\"" + pwd() + "\\external\\Qt55\\msvc2015_64_opengl\\bin\\qmllint.exe\" \"" + pwd() + "\\QmlScripts\\Production\\GeometryCleaner\\GeometryCleaner.qml\""; } [Pipeline] nodeRunning

How to find who's the master of a given slave?

2016-08-26 Thread Tamir Gefen
Hello, Assuming I have access to a given slave node, what would be the most efficient way to find out its master? Is that info is located in some configuration file? Something else? Thank you -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. T

Re: Best practices: many distinct jobs vs parameterized jobs

2016-08-26 Thread Rich Schumacher
Thanks for the great feedback, everyone! These are all good arguments and I've been convinced of the benefits of using distinct jobs for each project. Thankfully, the Job DSL plugin makes this trivial. Cheers! On Friday, August 12, 2016 at 4:53:15 PM UTC-4, Rich Schumacher wrote: > > Hey folks,

Re: Contents of file to be shown in email body with new line or proper line

2016-08-26 Thread Slide
Are you using plain text or html emails? If html, wrap a around it On Fri, Aug 26, 2016, 04:58 Dattatreyac Shekar wrote: > *Scenario :* > Invoking Jenkins Job remotely using curl with a file parameter. > *Goal:* > Display the contents of file in email body. > Using the Editable Email Notificati

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread 'Björn Pedersen' via Jenkins Users
Hi, You should really read the blog post. Jenkins itself need at least JDK1.7 to run (actually only a JRE1.7) . But you can install more than one jdk on a machine, so the jobs can use an older jdk to build soemthing. To configure the available jdks, go to 'manage jenkins' -> 'Configure tools'

Re: Jenkins takes too long for loading recent changes of current job (15min approx)

2016-08-26 Thread Mark Waite
On Fri, Aug 26, 2016 at 12:33 AM Ravalika wrote: > > Is there anyway we can debug, why the slow performance apart from > jenkins.log? > > > You can increase the logging level of the various classes in the git plugin and the git client plugin in hopes that the logging time stamps and messages will

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread Panikera Raj
I got the issue, Looks like backward compatibility is not there for jenkins. after downgrading jenkins version it is able to start with JDK 1.6. Not sure what is behind do not support for older version. anyway thanks guys, much appreciated your help. -Panikera On Fri, Aug 26, 2016 at 5:34 PM

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread Chris Selwyn
I suggest you read https://jenkins.io/blog/2015/04/06/good-bye-java6/. Chris Selwyn On 2016-08-26 12:48, Panikera Raj wrote: I have other windows setup which I had JDK 1.6, there I can start jenkins successfully and using for daily activities. -Panikera On Fri, Aug 26, 2016 at 5:06 PM, Chris

Contents of file to be shown in email body with new line or proper line

2016-08-26 Thread Dattatreyac Shekar
*Scenario :* Invoking Jenkins Job remotely using curl with a file parameter. *Goal:* Display the contents of file in email body. Using the Editable Email Notification plugin. *Expected Behavior.* Contents of file to be shown in email body with new line or proper line feeds. *Actual Behavior* Conten

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread Panikera Raj
I have other windows setup which I had JDK 1.6, there I can start jenkins successfully and using for daily activities. -Panikera On Fri, Aug 26, 2016 at 5:06 PM, Chris Selwyn wrote: > You cannot run Jenkins itself on anything less than JDK 7. > What Nicolas was saying was that it is, however,

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread Chris Selwyn
You cannot run Jenkins itself on anything less than JDK 7. What Nicolas was saying was that it is, however, still possible to have Jenkins build with JDKs less that JDK 7 by adding them to the Jenkins configuration using the setting in "Manage Jenkins". So you need to have at least JDK 7 insta

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread Panikera Raj
FYI... I have uninstalled JDK 1.7 version. -Panikera On Fri, Aug 26, 2016 at 4:53 PM, Panikera Raj wrote: > Can you bit elaborate about this, > > how cay achieve this, is there any configuration file where I can specify > to use JDK 1.6 > > -Panikera > > > On Fri, Aug 26, 2016 at 3:55 PM, nic

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread Panikera Raj
Can you bit elaborate about this, how cay achieve this, is there any configuration file where I can specify to use JDK 1.6 -Panikera On Fri, Aug 26, 2016 at 3:55 PM, nicolas de loof wrote: > You have to distinguish the JDK running jenkins and the JDK building your > project. You can configure

How can I set jnlp port from command line?

2016-08-26 Thread user_dev
I am trying to run some jenkins scripts through command line. But it requires me to set jnlp port. How do I set it from command line ? This question shows a way through curl but it does not work inside ansible command https://groups.google.com/forum/#!searchin/jenkinsci-users/set$20jnlp$20port$

Re: How to run jenkins in jdk 1.6

2016-08-26 Thread nicolas de loof
You have to distinguish the JDK running jenkins and the JDK building your project. You can configure jenkins to build with arbitrary JDK, using Java installations on global configuration and selecting the adequate one for your jobs 2016-08-26 11:22 GMT+02:00 Panikera Raj : > Hi All, > > I have a

How to run jenkins in jdk 1.6

2016-08-26 Thread Panikera Raj
Hi All, I have a problem, please do help me on this First I have installed JDK 1.7 in windows-64 bit machine, then I have started jenkins, in jenkins i have created some projects Called Android and I was able executing successfully, But later I am facing some issue in Android project, so I have d

batch task and maven_release-plugin

2016-08-26 Thread Philippe Couas
Hi, Could i use Maven Release plugin then in Post build task launching an batch task to copy released war in an special directory ? Regards Phil -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving