Re: What is a permanent agent or slave server when discussing Jenkins?

2016-08-19 Thread Baptiste Mathus
Hi,

Fwiw, slave in Jenkins 1.x and "permanent agent" in Jenkins 2.x is indeed
the same thing.
This vocabulary change is the result of
https://issues.jenkins-ci.org/browse/JENKINS-27268 to remove the term
'slave' from Jenkins.

As for your question, I guess there's no general answer. IMO you have to go
back to asking you what a /server/ does. Serve something?

As for the "slave *server*" term you're using, well I'd be curious if you
found that in some docs, since the "server" suffix would seem quite wrong
in general IMO.

My 2 cents

Le 19 août 2016 12:52 AM, "Kiran"  a écrit :

> In the context of Jenkins, is a slave server one that receives a build?
> Or is it an auxiliary server that offloads some of the computing demand for
> resources of a distributed build?
>
> With Jenkins 2.x, the term is "permanent agent."  I want to know precisely
> what to call a server that receives a Jenkins build/deployment.  If a file
> receives code or a file from Jenkins, what is the server called?  Is it a
> managed node?  Is there no term for 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/6564596c-47a8-4c18-a103-0ee6fed65bf6%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/CANWgJS5sAk3edQ3JL5OGH8LY9WLaQ%3D-41ExxZ%2BL4h7PbZ0cPWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile Multibranch Pipeline Github Maven Checkout Directory Issues

2016-08-19 Thread Baptiste Mathus
Step 5, you say you added a checkout step, but can't see it. Why didn't you
leave it? It's indeed required to have the sources.

Le 18 août 2016 11:00 AM, "Tony Murphy"  a écrit :

> Sorry, I wasn't clear
>
>
>1. I created a simple maven project (https://github.com/
>tonymurphy/jenkins-test), *the Jenkins file did not have any checkout
>step (code sample below*).
>2. I created a multibranch pipeline project using Jenkins 2. Jenkins
>then indexed the branches. I was able to use the Jenkins UI to run the 
> build
>3. On running the build, ${mvnHome}/bin/mvn clean compile test failed,
>the error was pom.xml not found
>4. I determined that the mvn command had been running from the "wrong"
>directory
>5. I then had to add the *checkout step*, adding code to check out the
>branch, add also switch into code check out folder dir("jenkins-test")
>6. I really like the new Jenkins pipeline - but the additional steps
>were not obvious and unexpected. I suspect I'm missing something, and my
>"workaround" is heavy handed
>
> -- broken Jenkins file
>
> I hope this makes more sense
>
> Thanks
>
> #!groovy
>
> node {
>
> def javaHome = tool "java8" // ensure Java 8 is installed
> def projectRepoURL = 'g...@github.com:tonymurphy/jenkins-test.git'
> echo "${env.getEnvironment()}"
> def mvnHome  = tool "mvn-3.2.2"
>
> wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
>
> stage 'Build'
> withEnv(["PATH+ACTIVATOR=${tool 'activator-1.3.x'}", 
> "PATH+JDK=${javaHome}/bin", "JAVA_HOME=${javaHome}"]) {
> dir("jenkins-test") {
> sh "${mvnHome}/bin/mvn clean compile test "
> step([$class: 'ArtifactArchiver', artifacts: 
> '**/target/*.jar', fingerprint: true])
> step([$class: 'JUnitResultArchiver', testResults: 
> '**/target/surefire-reports/TEST-*.xml'])
>
> }
> }
> }
> }
>
>
>
> On Wednesday, August 17, 2016 at 10:44:51 PM UTC+1, Baptiste Mathus wrote:
>>
>> Not sure I get what your actual issue is. Could you maybe rephrase it to
>> say what you see, compared to what you expect, and provide the error logs
>> and so on?
>>
>> Cheers
>>
>> Le 17 août 2016 11:02 AM, "Tony Murphy"  a écrit :
>>
>>> Hi
>>>
>>> I'm using the new Jenkins Pipelines and I need some help.
>>>
>>> I was under the illusion that once I setup my multi branch pipeline that
>>> was it as far as checkouts and branch management was concerned. But it
>>> seems that I was mistaken.
>>>
>>> I had issues where for example mvn command was not running in the
>>> directory were the code was checkout out to. The command seemed to be
>>> running in a  folder, while the code was in a sibling folder
>>> with a @scripts name (hope that makes sense)
>>>
>>> `checkout scm` does not work for me btw
>>>
>>> I would be grateful if someone could confirm I'm on the right track,
>>> could suggest improvements or confirm that it won't always be like this :)
>>>
>>> #!groovy
>>>
>>> githubCredentials = 'github_credentials'
>>> def projectBranch = "${env.BRANCH_NAME}"
>>>
>>> node {
>>>
>>> def javaHome = tool "java8" // ensure Java 8 is installed
>>> def projectRepoURL = 'g...@github.com:tonymurphy/jenkins-test.git'
>>> echo "${env.getEnvironment()}"
>>> def mvnHome  = tool "mvn-3.2.2"
>>>
>>> wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
>>>
>>> stage "Checkout"
>>> sh("git config --global credential.helper cache")
>>> checkout([$class   : 'GitSCM',
>>>   branches : [[name: projectBranch]],
>>>   extensions   : [[$class: 'RelativeTargetDirectory', 
>>> relativeTargetDir: 'jenkins-test'], [$class: 'CheckoutOption', timeout: 
>>> 10]],
>>>   userRemoteConfigs: [[credentialsId: githubCredentials, 
>>> url: projectRepoURL]]])
>>>
>>> stage 'Build'
>>> withEnv(["PATH+ACTIVATOR=${tool 'activator-1.3.x'}", 
>>> "PATH+JDK=${javaHome}/bin", "JAVA_HOME=${javaHome}"]) {
>>> dir("jenkins-test") {
>>> sh "${mvnHome}/bin/mvn clean compile test "
>>> step([$class: 'ArtifactArchiver', artifacts: 
>>> '**/target/*.jar', fingerprint: true])
>>> step([$class: 'JUnitResultArchiver', testResults: 
>>> '**/target/surefire-reports/TEST-*.xml'])
>>>
>>> }
>>> }
>>> }
>>> }
>>>
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/CAORQRkVZKg0fh4oqcgi8CQKhfpJ6BGnBoHijP55
>>> xv1SUR2VF6A%40mail.gmail.com
>>> 

Need for Lead .Net Web Developer-(Need for Lead .Net Web Developer-(Only Locals Face-Face Interview)

2016-08-19 Thread krishna sms
*Hi Partners,*

*Role::Lead .Net Web Developer*

*Location::Rocky Hill, CT*

*Duration::6+ Months.*

*Client::UHG/ITC*



*Job Description::*

*Projects:* *Lead .NET, C# development of Web.Strat and it's subcomponents.*



*Team:*6+ developers collaborating on the creation and maintenance of
cutting edge high volume Healthcare software.



Responsible For:

1. Working collaboratively with product specialists and regulatory
personnel to develop application specifications that conform to existing
architecture.

2. Developing, testing, and debugging application source code per
specifications

3. Manipulating application test/production data as required by the
regulatory and product specialists

4. Creating and assembling all components associated with product
distributions

5. Performing comprehensive QA review and testing of product distributions
prior to release

6.Participating in scheduled maintenance cycles for existing products

7. Working with Client Support and directly with the clients to resolve
reported installation issues



*Tools:* Microsoft Visual Studio



Must Have:

§  5 yrs .Net Development

§  5 yrs HTML, CSS, JavaScript,

§  3 yrs Visual Studio 2008 or higher

§  3 yrs XML

§  2 yrs MS SQL



Nice To Haves:

ü  AJAX

ü  C/C++ experience

ü  Documentation Skills

ü  Healthcare Industry Knowledge

ü  HTML5

ü  Object Oriented Analysis & Design

ü  Scrum/Agile




Warm Regards,

*Ramakrishna Aripalli*

*Technical Recruiter*

*23000 Commerce Dr, Farmington hills, MI-48335*

*Contact: 248-598-7522 (D), 248-876-4228 (Fax) *

*kris...@yochanait.com  *|| www.yochanait.com

Google Hangouts :krishna.sm...@gmail.com

Skype: Ramakrishna Aripalli

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


Re: cURL and API

2016-08-19 Thread Qazwart
Are you using a PC and editing the file on Linux?

You could be messing up your End of Lines. It shouldn’t matter with XML files. 
The end of lines don’t matter.

However, you can always reformat the files using xmllint and the -format option.

> On Aug 19, 2016, at 1:34 PM, Jedimaster_att  wrote:
> 
> I have successfully written a shell script that pulls down the job xml using
> cURL so i can edit it.  However, when i return it to Jenkins using cURL, my
> shell script is in a single line and not in its original form that Linux
> needs it to be in to be red.  Can anyone point me in the right direction to
> fix this?
> Thank you.
> 
> 
> 
> --
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/cURL-and-API-tp4835436.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
> 
> -- 
> 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/1471628066359-4835436.post%40n4.nabble.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/26B1ACE8-FA04-4F74-BAC7-F075AC357F62%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get Jenkins 2.0 multi branch pipeline and bitbucket 4.8.1 web hook working?

2016-08-19 Thread Jeroen Reijn
Hi Martin,

Yes that specific PR solves my problem. I hope it will me merged and
released soon, so we can start using that in our project. If not we will
probably cut our own internal release for now and wait for the release.

Jeroen

Op donderdag 18 augustus 2016 heeft Martin Dilger 
het volgende geschreven:

> So I´m looking into this too.
>
> Did you mean "https://github.com/jenkinsci/bitbucket-branch-source-
> plugin/pull/5"?
>
> Martin
>
>
> Am Freitag, 22. Juli 2016 13:52:45 UTC+2 schrieb Jeroen Reijn:
>>
>> Hi all,
>>
>> I'm trying to get my multibranch workflow job to trigger based on a
>> change in bitbucket server (previously known as stash).
>>
>> I've read most of the docs on the several plugins, but I can't seem to
>> get the combination to work.
>>
>> What I've done now is configure my project with:
>>
>> Branch sources -> Bitbucket
>> Build Configuration -> Mode -> From Jenkinsfile
>> Bitbucket Server URL -> My custom URL
>> And I've setup the credentials.
>>
>> That part seems to work fine, so if I manually trigger the build it runs
>> fine and does the branch indexing.
>>
>> On the bitbucket side, I've tried to use the following plugins:
>>
>> 1. Bitbucket Server Webhook to Jenkins
>> I tried this with specificing the jenkins url, but it reports back with:
>>
>> Error: Jenkins response: No git jobs using repository:
>> http://host:7990/scm/hv/project.git and branches: master No Git
>> consumers using SCM API plugin for: http://host:7990/scm/hv/project.git
>>
>> I guess this comes from the fact it's a pipeline job that uses a branches
>> sources instead of git in a 'normal' maven base project with git as source.
>>
>>
>> 2. Post-Receive WebHooks
>>
>> If I use this plugin with the URL http://jenkinshost:8080/bitbucket-hook/
>> it complaints with:
>> WARNING: Error while serving http://jenkinshost:8080/bitbucket-hook/
>>
>> net.sf.json.JSONException: JSONObject["user"] not found.
>>
>> So it seems the request body to the bitbucket hook is not what the server
>> expects. I've found some github issues, but I can't seem to figure out how
>> I can make this work.
>>
>> I assume I'm not the only one trying this?
>>
>> Any ideas?
>>
>> Regards,
>>
>> Jeroen
>>
>>
>> --
> 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/GjvZ6Dj8pRc/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/2ff63def-d518-4e40-b1ce-62bf2c8ca566%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Verzonden via Gmail Mobile

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


cURL and API

2016-08-19 Thread Jedimaster_att
I have successfully written a shell script that pulls down the job xml using
cURL so i can edit it.  However, when i return it to Jenkins using cURL, my
shell script is in a single line and not in its original form that Linux
needs it to be in to be red.  Can anyone point me in the right direction to
fix this?
Thank you.



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/cURL-and-API-tp4835436.html
Sent from the Jenkins users mailing list archive at Nabble.com.

-- 
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/1471628066359-4835436.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is a permanent agent or slave server when discussing Jenkins?

2016-08-19 Thread Eric Pyle
A Jenkins slave (or agent in 2.x) is a service running on "an auxiliary 
server" as you describe it, which can be assigned jobs to execute by the 
Jenkins master. There is no Jenkins-specific term for a server that 
receives artifacts from Jenkins jobs. You would call it whatever you'd 
call it if Jenkins weren't involved. File server? Deployment target?


Eric


On 8/18/2016 6:52 PM, Kiran wrote:
In the context of Jenkins, is a slave server one that receives a 
build?  Or is it an auxiliary server that offloads some of the 
computing demand for resources of a distributed build?


With Jenkins 2.x, the term is "permanent agent."  I want to know 
precisely what to call a server that receives a Jenkins 
build/deployment.  If a file receives code or a file from Jenkins, 
what is the server called?  Is it a managed node?  Is there no term 
for 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/6564596c-47a8-4c18-a103-0ee6fed65bf6%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
*Eric Pyle
*
Release Engineer
Lebanon
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@cd-adapco.com 
http://www.cd-adapco.com 

--
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/81a1be2e-4367-5020-1b85-c5404f755bd3%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins fails to import bridging header.The project builds fine in Xcode

2016-08-19 Thread cstirbu
Hi 

I am running into the same issue. Did you find a solution for this?
Any help would be appreciated, thanks.

Regards,
Cosmin


On Monday, July 18, 2016 at 4:16:54 PM UTC+3, Shayeeb Mohammad wrote:
>
> My project builds fine in Xcode and the checkout that Jenkins takes from 
> bitbucket also builds fine in Xcode but when jenkins builds the same i get 
> the following error.Im using Xcode 7.3 and latest stable version of Jenkins
>
>
> /Users/Shared/Jenkins/Home/workspace/F6/Finserve/Finserve-Bridging-Header.h:9:9:
>  error: 'ITRAirSideMenu/ITRAirSideMenu.h' file not found
>
> :0: error: failed to import bridging header 
> '/Users/Shared/Jenkins/Home/workspace/F6/Finserve/Finserve-Bridging-Header.h'
> ** BUILD FAILED **
>
>

-- 
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/9f5b1d5f-abc2-437a-8564-813932ad8a7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multi-configuration project fails to load after Jenkins 2 upgrade

2016-08-19 Thread Gavin Williams
Afternoon all

I've just upgraded one of our Jenkins hosts from 1.6 to 2.18, and 
unfortunately it appears to have broken some of our Multi-configuration 
projects. 

Upon restarting Jenkins, the following is logged:

> SEVERE: Failed Loading job Microservice_Matrix_Unit
> java.lang.NullPointerException
> at 
> hudson.matrix.MatrixProject.createTransientActions(MatrixProject.java:450)
> at 
> hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:756)
> at 
> hudson.matrix.MatrixProject.updateTransientActions(MatrixProject.java:460)
> at hudson.model.AbstractProject.onLoad(AbstractProject.java:340)
> at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:501)
> at hudson.model.Items.load(Items.java:333)
> at jenkins.model.Jenkins$17.run(Jenkins.java:2942)
> at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
> at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
> at jenkins.model.Jenkins$7.runTask(Jenkins.java:1026)
> at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
> at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)


I've not found anything of any use whilst googling... 

Any ideas on how I can fix the jobs?

Regards
Gavin  

-- 
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/38370b33-ef3f-4226-9242-4bcad6edbec7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't initialize Jenkins

2016-08-19 Thread Mark Waite
Is there a compelling reason why you're asking Jenkins to only listen on
the loopback interface?  I don't know if that is the cause of your problem,
but the --httpListenAddress=127.0.0.1 is not a setting I typically use.

You may also need to remove the contents of the .jenkins folder in your
home directory.  The earlier attempts may have left some "debris" in that
folder.

Mark Waite

On Fri, Aug 19, 2016 at 8:31 AM Miguel Alver  wrote:

> You're right, I thought it was ok because it didn't complain... But now it
> got stuck while initializating:
>
> C:\JENKINS>java -jar jenkins.war --httpPort=9090
> --httpListenAddress=127.0.0.1
> Running from: C:\JENKINS\jenkins.war
> webroot: $user.home/.jenkins
> Aug 19, 2016 4:10:44 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: Logging initialized @682ms
> Aug 19, 2016 4:10:44 PM winstone.Logger logInternal
> INFO: Beginning extraction from war file
> ←[33mAug 19, 2016 4:11:06 PM org.eclipse.jetty.util.log.JavaUtilLog warn
> WARNING: Empty contextPath
> ←[0mAug 19, 2016 4:11:06 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: jetty-9.2.z-SNAPSHOT
> Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: NO JSP Support for /, did not find
> org.eclipse.jetty.jsp.JettyJspServlet
> Jenkins home directory: C:\Users\mverdu\.jenkins found at:
> $user.home/.jenkins
> Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: Started w.@3b220bcb
> {/,file:/C:/Users/mverdu/.jenkins/war/,AVAILABLE}{C:\Us
> ers\mverdu\.jenkins\war}
> Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: Started ServerConnector@62dae540{HTTP/1.1}{127.0.0.1:9090}
> Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: Started @24704ms
> Aug 19, 2016 4:11:08 PM winstone.Logger logInternal
> INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
> Aug 19, 2016 4:11:08 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Started initialization
>
> It's 20 minutes stuck there, any idea?
>
> Regards,
>
> Miguel
>
> El viernes, 19 de agosto de 2016, 16:06:55 (UTC+2), Mark Waite escribió:
>
>> The httpPort command line arguments begins with two dashes, rather than
>> the single dash that you included.
>>
>> Mark Waite
>>
>> On Fri, Aug 19, 2016 at 8:04 AM Miguel Alver  wrote:
>>
> I'm trying to initialize Jenkins on windows using cmd and it seems it's
>>> not launching because port 8080 is already in use. I'm trying to start it
>>> in another port using:
>>> java -jar jenkins.war -httpPort=6000 --httpListenAddress=127.0.0.1
>>> but then I see:
>>> FAILED SelectChannelConnector@127.0.0.1:8080
>>> so it seems like changing the port doesn't make any effect.
>>>
>>> Here is the output I get:
>>>
>>> C:\JENKINS>java -jar jenkins.war -httpPort=6000
>>> --httpListenAddress=127.0.0.1
>>> Running from: C:\JENKINS\jenkins.war
>>> webroot: $user.home/.jenkins
>>> Aug 19, 2016 3:38:13 PM winstone.Logger logInternal
>>> INFO: Beginning extraction from war file
>>> Aug 19, 2016 3:38:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
>>> INFO: jetty-winstone-2.9
>>> Aug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog info
>>> INFO: NO JSP Support for , did not find
>>> org.apache.jasper.servlet.JspServlet
>>> Jenkins home directory: C:\Users\mverdu\.jenkins found at:
>>> $user.home/.jenkins
>>> ←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog warn
>>> WARNING: FAILED SelectChannelConnector@127.0.0.1:8080:
>>> java.net.BindException: A
>>> ddress already in use: bind
>>> java.net.BindException: Address already in use: bind
>>> at sun.nio.ch.Net.bind0(Native Method)
>>> at sun.nio.ch.Net.bind(Net.java:433)
>>> at sun.nio.ch.Net.bind(Net.java:425)
>>> at sun.nio.ch
>>> .ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
>>> 223)
>>> at sun.nio.ch
>>> .ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
>>> at
>>> org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne
>>> lConnector.java:187)
>>> at
>>> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.
>>> java:316)
>>> at
>>> org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha
>>> nnelConnector.java:265)
>>> at
>>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
>>> Cycle.java:64)
>>> at org.eclipse.jetty.server.Server.doStart(Server.java:293)
>>> at
>>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
>>> Cycle.java:64)
>>> at winstone.Launcher.(Launcher.java:156)
>>> at winstone.Launcher.main(Launcher.java:356)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sorImpl.java:43)
>>> at java.lang.reflect.Method.i

Using a Master Jenkinsfile for Multi-branch Pipelines

2016-08-19 Thread Qazwart
I have just started looking at using Pipelines. One of the reasons I liked 
about Jenkins over CruiseControl was that Jenkins allowed you to quickly setup 
a build using a web form rather than attempting to setup up an entire process 
using an XML file. Pipelines feels a bit of a step back.

However, I am intrigued about multi-branch Pipelines which would allow use to 
create new Jenkins projects every time a new branch is created. No more copying 
and modifying config.xml files to create new jobs.

There are two issues. The first is that if you use Multi-branch Pipelines, 
there’s no way to browse the working directory, or allowing a user to scrub it 
if there’s an issue. The second is that I don’t want to maintain multiple 
Jenkinsfiles — one for each project. Most of my projects would be built using 
identical Jenkinsfiles. It would seem silly if I make a change in one, I would 
have to checkout and change 40 other Jenkinsfiles to get that same change.

So, is there a way to browse the working directory? If not, I can live with 
that. However, I’d like to know whether I can specify where a Jenkinsfile exist 
in a multi-branch Pipeline (I can do that with other types of Pipeline 
projects), or somehow read in a master Jenkinsfile from another Jenkinsfile in 
another project. I could create a local Jenkinsfile whose sole purpose is to 
call in the real Jenkinsfile.

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/84256620-85FF-4CB8-A8E5-56B1DFC806FC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


HA (high availability) Jenkins setup across 2 sites

2016-08-19 Thread John
Hello everyone,

We are doing a new implementation of Jenkins and interested in ways to 
create an HA setup.
I can think of a few ways:
1. Stay with the regular XML style configs with shared filesystem (DRBD or 
NFS?)
2. Use DB PostGres/MySQL with WAN replication.

We are OK with having the 2nd master in standby cold HA so it can be 
brought up manually.

What are the recommendations?

Thanks
John

-- 
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/ec9533de-10a6-412d-9747-ba739719bc20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't initialize Jenkins

2016-08-19 Thread Miguel Alver
You're right, I thought it was ok because it didn't complain... But now it 
got stuck while initializating:

C:\JENKINS>java -jar jenkins.war --httpPort=9090 
--httpListenAddress=127.0.0.1
Running from: C:\JENKINS\jenkins.war
webroot: $user.home/.jenkins
Aug 19, 2016 4:10:44 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @682ms
Aug 19, 2016 4:10:44 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
←[33mAug 19, 2016 4:11:06 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
←[0mAug 19, 2016 4:11:06 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find 
org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: C:\Users\mverdu\.jenkins found at: 
$user.home/.jenkins
Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started 
w.@3b220bcb{/,file:/C:/Users/mverdu/.jenkins/war/,AVAILABLE}{C:\Us
ers\mverdu\.jenkins\war}
Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@62dae540{HTTP/1.1}{127.0.0.1:9090}
Aug 19, 2016 4:11:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @24704ms
Aug 19, 2016 4:11:08 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Aug 19, 2016 4:11:08 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization

It's 20 minutes stuck there, any idea?

Regards,

Miguel

El viernes, 19 de agosto de 2016, 16:06:55 (UTC+2), Mark Waite escribió:
>
> The httpPort command line arguments begins with two dashes, rather than 
> the single dash that you included.
>
> Mark Waite
>
> On Fri, Aug 19, 2016 at 8:04 AM Miguel Alver  > wrote:
>
>> I'm trying to initialize Jenkins on windows using cmd and it seems it's 
>> not launching because port 8080 is already in use. I'm trying to start it 
>> in another port using:
>> java -jar jenkins.war -httpPort=6000 --httpListenAddress=127.0.0.1
>> but then I see:
>> FAILED SelectChannelConnector@127.0.0.1:8080
>> so it seems like changing the port doesn't make any effect.
>>
>> Here is the output I get:
>>
>> C:\JENKINS>java -jar jenkins.war -httpPort=6000 
>> --httpListenAddress=127.0.0.1
>> Running from: C:\JENKINS\jenkins.war
>> webroot: $user.home/.jenkins
>> Aug 19, 2016 3:38:13 PM winstone.Logger logInternal
>> INFO: Beginning extraction from war file
>> Aug 19, 2016 3:38:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
>> INFO: jetty-winstone-2.9
>> Aug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog info
>> INFO: NO JSP Support for , did not find 
>> org.apache.jasper.servlet.JspServlet
>> Jenkins home directory: C:\Users\mverdu\.jenkins found at: 
>> $user.home/.jenkins
>> ←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog warn
>> WARNING: FAILED SelectChannelConnector@127.0.0.1:8080: 
>> java.net.BindException: A
>> ddress already in use: bind
>> java.net.BindException: Address already in use: bind
>> at sun.nio.ch.Net.bind0(Native Method)
>> at sun.nio.ch.Net.bind(Net.java:433)
>> at sun.nio.ch.Net.bind(Net.java:425)
>> at 
>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
>> 223)
>> at 
>> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
>> at 
>> org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne
>> lConnector.java:187)
>> at 
>> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.
>> java:316)
>> at 
>> org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha
>> nnelConnector.java:265)
>> at 
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
>> Cycle.java:64)
>> at org.eclipse.jetty.server.Server.doStart(Server.java:293)
>> at 
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
>> Cycle.java:64)
>> at winstone.Launcher.(Launcher.java:156)
>> at winstone.Launcher.main(Launcher.java:356)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:62)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at Main._main(Main.java:307)
>> at Main.main(Main.java:98)
>>
>> ←[0m←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog 
>> warn
>> WARNING: FAILED org.eclipse.jetty.server.Server@757942a1: 
>> java.net.BindException
>> : Address already in use: bind
>> java.net.BindException: Address already in use: bind
>> at sun.nio.ch.Net.bind0(Native Method)
>> at sun.nio.ch.Net.bind(Net.java:433)
>> at sun.nio.ch.Net.bind(Net.java:425)
>> at 
>> sun.nio.ch.ServerSocketChannelImpl.

Re: [LogParserPublisher] pipeline doesn't set currentBuild.result

2016-08-19 Thread jerome
If the log is null (default value) use the normal full consoleOutput.

-- 
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/f2d29749-1fc1-40fc-aa3e-e0110fc12470%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't initialize Jenkins

2016-08-19 Thread Mark Waite
The httpPort command line arguments begins with two dashes, rather than the
single dash that you included.

Mark Waite

On Fri, Aug 19, 2016 at 8:04 AM Miguel Alver  wrote:

> I'm trying to initialize Jenkins on windows using cmd and it seems it's
> not launching because port 8080 is already in use. I'm trying to start it
> in another port using:
> java -jar jenkins.war -httpPort=6000 --httpListenAddress=127.0.0.1
> but then I see:
> FAILED SelectChannelConnector@127.0.0.1:8080
> so it seems like changing the port doesn't make any effect.
>
> Here is the output I get:
>
> C:\JENKINS>java -jar jenkins.war -httpPort=6000
> --httpListenAddress=127.0.0.1
> Running from: C:\JENKINS\jenkins.war
> webroot: $user.home/.jenkins
> Aug 19, 2016 3:38:13 PM winstone.Logger logInternal
> INFO: Beginning extraction from war file
> Aug 19, 2016 3:38:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: jetty-winstone-2.9
> Aug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: NO JSP Support for , did not find
> org.apache.jasper.servlet.JspServlet
> Jenkins home directory: C:\Users\mverdu\.jenkins found at:
> $user.home/.jenkins
> ←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog warn
> WARNING: FAILED SelectChannelConnector@127.0.0.1:8080:
> java.net.BindException: A
> ddress already in use: bind
> java.net.BindException: Address already in use: bind
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
> 223)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne
> lConnector.java:187)
> at
> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.
> java:316)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha
> nnelConnector.java:265)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
> Cycle.java:64)
> at org.eclipse.jetty.server.Server.doStart(Server.java:293)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
> Cycle.java:64)
> at winstone.Launcher.(Launcher.java:156)
> at winstone.Launcher.main(Launcher.java:356)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at Main._main(Main.java:307)
> at Main.main(Main.java:98)
>
> ←[0m←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog
> warn
> WARNING: FAILED org.eclipse.jetty.server.Server@757942a1:
> java.net.BindException
> : Address already in use: bind
> java.net.BindException: Address already in use: bind
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
> 223)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne
> lConnector.java:187)
> at
> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.
> java:316)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha
> nnelConnector.java:265)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
> Cycle.java:64)
> at org.eclipse.jetty.server.Server.doStart(Server.java:293)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
> Cycle.java:64)
> at winstone.Launcher.(Launcher.java:156)
> at winstone.Launcher.main(Launcher.java:356)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at Main._main(Main.java:307)
> at Main.main(Main.java:98)
>
> ←[0mAug 19, 2016 3:38:16 PM hudson.WebAppMain contextDestroyed
> INFO: Shutting down a Jenkins instance that was still starting up
> java.lang.Throwable: reason
> at hudson.WebAppMain.contextDestroyed(WebAppMain.java:400)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler
> .java:823)
> at
> org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContext
> Handler.java:160)
> at
> org.eclipse.jetty.webapp.WebAppContext.doStop(Web

[LogParserPublisher] pipeline doesn't set currentBuild.result

2016-08-19 Thread jerome
Hi,

I have a build where I use the following:
step([$class: 'LogParserPublisher', parsingRulesPath: "QmlScriptWalker.txt", 
useProjectRule: false, failBuildOnError: true]);

The warnings detected doesn't set the currentBuild.result variable as 
unstable even if failBuildOnError is set to true. Is there a way to fetch 
the parsing results?

Can I suggest the following instead of the bool failBuildOnError, to use 
string or enum for build status:
buildStatusOnError: 'FAILURE'
buildStatusOnWarning: 'UNSTABLE'

step([$class: 'LogParserPublisher', parsingRulesPath: "QmlScriptWalker.txt", 
useProjectRule: false, buildStatusOnError: 'FAILURE', buildStatusOnWarning: 
'UNSTABLE']);

I would love to also have teh option to only parse a stage part of the log 
and not the whole log in the end (cannot make multiple pass of those, only 
the last result is kept).

def returnedOutput = bat([returnStdout: true, script: '...']); // or sh()
step([$class: 'LogParserPublisher', parsingRulesPath: "QmlScriptWalker.txt",
 useProjectRule: false, buildStatusOnError: "FAILURE", buildStatusOnWarning:
 "UNSTABLE", log: returnedOutput, name: "QmlScriptInspection"]);

new parameter

   1. log: add the parsing of the given string (would be even better to 
   have the console output of the current stage only, but I would settle with 
   that just fine).
   2. name: give the parsed results name to have multiple one into the 
   build results. 

Those would avoid having a melting pot of the parsing at the end of the 
node grouped all together and parsing big chunk of unrelated console output 
for other stage part (like the long build console output for example).

What do you think?
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/25379889-c275-4452-b9d3-3b33a1bb4419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can't initialize Jenkins

2016-08-19 Thread Miguel Alver
I'm trying to initialize Jenkins on windows using cmd and it seems it's not 
launching because port 8080 is already in use. I'm trying to start it in 
another port using:
java -jar jenkins.war -httpPort=6000 --httpListenAddress=127.0.0.1
but then I see:
FAILED SelectChannelConnector@127.0.0.1:8080
so it seems like changing the port doesn't make any effect.

Here is the output I get:

C:\JENKINS>java -jar jenkins.war -httpPort=6000 
--httpListenAddress=127.0.0.1
Running from: C:\JENKINS\jenkins.war
webroot: $user.home/.jenkins
Aug 19, 2016 3:38:13 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Aug 19, 2016 3:38:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-winstone-2.9
Aug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: C:\Users\mverdu\.jenkins found at: 
$user.home/.jenkins
←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: FAILED SelectChannelConnector@127.0.0.1:8080: 
java.net.BindException: A
ddress already in use: bind
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne
lConnector.java:187)
at 
org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.
java:316)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha
nnelConnector.java:265)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
at org.eclipse.jetty.server.Server.doStart(Server.java:293)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
at winstone.Launcher.(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at Main._main(Main.java:307)
at Main.main(Main.java:98)

←[0m←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: FAILED org.eclipse.jetty.server.Server@757942a1: 
java.net.BindException
: Address already in use: bind
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne
lConnector.java:187)
at 
org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.
java:316)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha
nnelConnector.java:265)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
at org.eclipse.jetty.server.Server.doStart(Server.java:293)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
at winstone.Launcher.(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at Main._main(Main.java:307)
at Main.main(Main.java:98)

←[0mAug 19, 2016 3:38:16 PM hudson.WebAppMain contextDestroyed
INFO: Shutting down a Jenkins instance that was still starting up
java.lang.Throwable: reason
at hudson.WebAppMain.contextDestroyed(WebAppMain.java:400)
at 
org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler
.java:823)
at 
org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContext
Handler.java:160)
at 
org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:518)

at 
org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeC
ycle.java:89)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper
.java:107)
at org.eclipse.jetty.server.Server.doStop(Server.java:343)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeC
ycle.java:89)
   

Re: Are pipelines incompatible with local developer builds?

2016-08-19 Thread jerome
Hi,
I think you makefile script is just fine and you should keep it this way.
I think what you want to split into stage is not what happen during the 
build but what goes around it.

here's an example of my jenkinsfile stages for a build:

   - stage 'Checkout'
   - stage 'Clean' // make clean most likely
   - stage 'Build'  // where you perform the general app make
   - stage 'Build Tests' // make tests
   - stage 'Run Unit Tests'
   - stage 'Run Smoke Tests'
   - stage 'Run Automated Tests'
   - stage 'Benchmark'
   - stage 'Qml Inspection'
   - stage 'Doxygen Generation'

The build should be the same as local developer are making, it just that 
you control the environment better on build machine. This is not the 
universal solution but just an example, the wanted stage depends on your 
code and application.

On Friday, August 19, 2016 at 7:20:02 AM UTC-4, Sorin Ionuț Sbârnea wrote:
>
> I do like Jenkins pipelines and the fact that now we can control Jenkins 
> jobs via an inside repository file. I also love the looks of the upcoming 
> Blue Ocean interface and I can't wait to see it as default interface.
>
> Now, the reality is that there is a serious problem which seems to be 
> ignored by the Jenkins development team: 
>
> By implementing Jenkins pipelines you lose the ability to execute a build 
> job outside jenkins. 
>
> Due to this our current pipelines are mostly just one execution of 'make', 
> so we can't really benefit from having the execution steps splitted and 
> nicely-displayed by Jenkins.
>
> Like most users we do have multi-stage bash/make scripts that are building 
> the product.
>
> Is there a way to implement Jenkins pipelines and still be able to run 
> local builds? What is you take on this?
>

-- 
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/bbe16c5b-caa6-4690-8416-22d101c9ccbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Are pipelines incompatible with local developer builds?

2016-08-19 Thread Sorin Ionuț Sbârnea
I do like Jenkins pipelines and the fact that now we can control Jenkins 
jobs via an inside repository file. I also love the looks of the upcoming 
Blue Ocean interface and I can't wait to see it as default interface.

Now, the reality is that there is a serious problem which seems to be 
ignored by the Jenkins development team: 

By implementing Jenkins pipelines you lose the ability to execute a build 
job outside jenkins. 

Due to this our current pipelines are mostly just one execution of 'make', 
so we can't really benefit from having the execution steps splitted and 
nicely-displayed by Jenkins.

Like most users we do have multi-stage bash/make scripts that are building 
the product.

Is there a way to implement Jenkins pipelines and still be able to run 
local builds? What is you take on this?

-- 
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/fd3b2419-9224-444b-9e16-76853b04cb25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I securely connect to Windows machines with Jenkins with as few plugins on the servers receiving the Jenkins builds as possible?

2016-08-19 Thread Kiran
I'm referring to the first case.

For SSH to work, do you recommend OpenSSH?  

Which of the options you listed have the fewest things to install on the 
machines that will receive the builds (the servers other than the Jenkins 
server) ?

Of the three options you mentioned, would I need licenses for enterprise 
usage?

On Friday, August 19, 2016 at 3:13:33 AM UTC-4, Simona Avornicesei wrote:
>
> Are you referring to servers where you want to deploy code (e.g. web 
> servers) or machines where to run your builds/Jenkins jobs?
>
> In the first case you have several options like psexec, ssh, signed 
> powershell scripts (those require 2 win services to be started).
> In the second case, you need the Jenkins slave/agent on that machine and 
> to set it up as a slave in Jenkins.
>

-- 
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/1fc754e4-dd49-42ff-9c48-bf33ea3f298b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: When a server is designated as a permanent node, what happens to that server?

2016-08-19 Thread Kiran
I already did that.  The answers were not obvious to me.

On Thursday, August 18, 2016 at 7:01:17 PM UTC-4, Mark Waite wrote:
>
> I think you'll be best served by enabling a slave yourself and then 
> seeking the answers on that system.  You'll learn more, and you're more 
> likely to find answers to the questions that are most relevant to you.
>
> Mark Waite
>
> On Thu, Aug 18, 2016 at 4:53 PM Kiran > 
> wrote:
>
>> When a server is designated as a permanent node, what happens to that 
>> server?  Does Jenkins transfer an installer package or set of configuration 
>> files?  If so, where do the files go?  What is the size in KB of these 
>> files?  What type of overhead will this server have due to this designation?
>>
>> With Jenkins 1.x, it was called a Dumb Slave.  I have the same questions 
>> for the Dumb Slave.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/0c9d1dd5-4eab-471c-8cc5-6f6bf76feedc%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/69fe9c0b-f5d3-4b78-b17e-7f8d5775f3f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: When a server is designated as a permanent node, what happens to that server?

2016-08-19 Thread Kiran
I already did that.  The answers were not obvious.

On Thursday, August 18, 2016 at 7:01:17 PM UTC-4, Mark Waite wrote:
>
> I think you'll be best served by enabling a slave yourself and then 
> seeking the answers on that system.  You'll learn more, and you're more 
> likely to find answers to the questions that are most relevant to you.
>
> Mark Waite
>
> On Thu, Aug 18, 2016 at 4:53 PM Kiran > 
> wrote:
>
>> When a server is designated as a permanent node, what happens to that 
>> server?  Does Jenkins transfer an installer package or set of configuration 
>> files?  If so, where do the files go?  What is the size in KB of these 
>> files?  What type of overhead will this server have due to this designation?
>>
>> With Jenkins 1.x, it was called a Dumb Slave.  I have the same questions 
>> for the Dumb Slave.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/0c9d1dd5-4eab-471c-8cc5-6f6bf76feedc%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/975ac5be-d781-4e9e-a5e2-5b6298e38fff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Matrix jobs mixed with pipelines

2016-08-19 Thread Leandro Lucarella
Hi, I'm moving to Jenkins 2.0 pipelines using Jenkinsfiles and I'm
trying to find the best way to translate matrix jobs to it. Is there a
way to define a matrix job or should I emulate it somehow using parallel
stages or something like that?

I tried to write something using parallel, but I get an error message
when defining "stage" inside it, it complains with:

  The ‘stage’ step must not be used inside a ‘parallel’ block.

Also, I'm finding very hard to find good documentation that explains in
more depth how Jenkinsfiles work, or references to the available
functions, like what kind of stuff can be used inside other stuff (like
the problem I had that 'stage' can't be used inside 'parallel'). Most
of the stuff I find are usually short tutorials demonstrating fairly
trivial features. Are there any good resources you can point me to?

Thank you!

PS: Please CC me, I'm not subscribed to the list.

-- 
Leandro Lucarella
Technical Development Lead
Sociomantic Labs GmbH 

-- 
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/20160818191448.67a1e31c%40labs-064.localdomain.
For more options, visit https://groups.google.com/d/optout.


Re: How to best define .m2 local maven repo path in multi-branch projects/Jenkinsfile?

2016-08-19 Thread Álvaro Lobato
I think that multibranch have a workspace for each branch (I'm away from my
computer and can't check it) if that is the case it is safe to just use
.repository, if not you can use what you propose or
.reposotory_${env.BRANCH_NAME} which will make it relative and it should be
persistent between executions.

El 19/8/2016 9:32, "ST"  escribió:

> Hi Alvaro,
>
> Thanks for your reply. So in a multi-branch project, do you have any
> better proposal than to use the following?
>
> withMaven(mavenLocalRepo: "/tmp/${env.BRANCH_NAME}/.repository") {
> // Run the maven buildsh "mvn clean package"
>
> }
>
> Since we're "mvn install"-ing snapshots, we cannot reuse the same .m2 repo 
> for different branches...
>
>
> On Tue, Aug 16, 2016 at 10:25 PM, Álvaro Lobato 
> wrote:
>
>> Hello Stefan,
>>
>> An easy way to do it is to use the new Pipeline Maven
>>  plugin.
>> It allows you to define a local maven repository, relative to to the
>> workspace of the job or with an absolute path, you can also use shell
>> variables expansion. In your case would be as easy as using a job similar
>> to this one:
>>
>> withMaven(mavenLocalRepo: '.repository') {
>> // Run the maven buildsh "mvn clean package"
>>
>> }
>>
>>
>> This will execute the specified mvn command with a local repo on the
>> folder .repository inside the workspace.
>>
>> You can also use other parameters to customise you maven behaviour or
>> even auto-install it.  If you want more information check the plugin
>> wiki page
>>  or
>> this thread from the forum
>> .
>>
>> It is still in beta phase, but working well so far.
>>
>> Cheers
>> Alvaro
>>
>> El lunes, 15 de agosto de 2016, 18:36:30 (UTC+2), ST escribió:
>>>
>>> Hi!
>>>
>>> I am migrating our build pipeline from a set of maven-type jobs to a
>>> multi-branch project defined in a Jenkinsfile, and I am wondering how
>>> people solve the .m2 problem ? I cannot see any way to configure every
>>> job/branch to have its own private .m2 repo through a comfortable boolean
>>> config option, did I miss something?
>>>
>>> Otherwise I guess the solution is to set the .m2 path via
>>> -Dmaven.repo.local. But how to best define this path so it is different for
>>> every job/branch? Put it under /tmp/? Any other more
>>> elegant options?
>>>
>>> Best regards,
>>>  stefan.
>>>
>>>
>>> --
>> 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/ms
>> gid/jenkinsci-users/5970854a-5e55-4475-bf75-5da0227202d9%
>> 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/6NCL_RTSRDY/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/CABwQARtxFg8f82BxxM_aToua8Q3hG_
> qUsZqjrQt871cVkQOEtA%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/CAHBC%2BRsX7gf4QD_TAchz1V39noz6odZvWHiRQY9omfnHVFD8jA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Launch SonarScanner from Jenkins without sonar-project.properties only MAVEN

2016-08-19 Thread Philippe Couas
Hi,

Ii want launching Sonar Scanner from Jenkins 2.7.2 on an Maven3 Multi 
modules project
Could i avoid creating  sonar-project.properties file and just declaring 
properties in Maven ?

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 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/8473eb7c-f984-4e09-968e-838e55eca704%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to best define .m2 local maven repo path in multi-branch projects/Jenkinsfile?

2016-08-19 Thread ST
Hi Alvaro,

Thanks for your reply. So in a multi-branch project, do you have any better
proposal than to use the following?

withMaven(mavenLocalRepo: "/tmp/${env.BRANCH_NAME}/.repository") {
// Run the maven buildsh "mvn clean package"

}

Since we're "mvn install"-ing snapshots, we cannot reuse the same .m2
repo for different branches...


On Tue, Aug 16, 2016 at 10:25 PM, Álvaro Lobato 
wrote:

> Hello Stefan,
>
> An easy way to do it is to use the new Pipeline Maven
>  plugin.
> It allows you to define a local maven repository, relative to to the
> workspace of the job or with an absolute path, you can also use shell
> variables expansion. In your case would be as easy as using a job similar
> to this one:
>
> withMaven(mavenLocalRepo: '.repository') {
> // Run the maven buildsh "mvn clean package"
>
> }
>
>
> This will execute the specified mvn command with a local repo on the
> folder .repository inside the workspace.
>
> You can also use other parameters to customise you maven behaviour or even
> auto-install it.  If you want more information check the plugin wiki page
>  or
> this thread from the forum
> .
>
> It is still in beta phase, but working well so far.
>
> Cheers
> Alvaro
>
> El lunes, 15 de agosto de 2016, 18:36:30 (UTC+2), ST escribió:
>>
>> Hi!
>>
>> I am migrating our build pipeline from a set of maven-type jobs to a
>> multi-branch project defined in a Jenkinsfile, and I am wondering how
>> people solve the .m2 problem ? I cannot see any way to configure every
>> job/branch to have its own private .m2 repo through a comfortable boolean
>> config option, did I miss something?
>>
>> Otherwise I guess the solution is to set the .m2 path via
>> -Dmaven.repo.local. But how to best define this path so it is different for
>> every job/branch? Put it under /tmp/? Any other more
>> elegant options?
>>
>> Best regards,
>>  stefan.
>>
>>
>> --
> 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/5970854a-5e55-4475-bf75-5da0227202d9%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/CABwQARtxFg8f82BxxM_aToua8Q3hG_qUsZqjrQt871cVkQOEtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I securely connect to Windows machines with Jenkins with as few plugins on the servers receiving the Jenkins builds as possible?

2016-08-19 Thread Simona Avornicesei
Are you referring to servers where you want to deploy code (e.g. web 
servers) or machines where to run your builds/Jenkins jobs?

In the first case you have several options like psexec, ssh, signed 
powershell scripts (those require 2 win services to be started).
In the second case, you need the Jenkins slave/agent on that machine and to 
set it up as a slave in Jenkins.

-- 
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/6b429de6-ce4e-4019-a4f7-80e061486e95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.