Combining the build from multiple VCSes...

2017-05-15 Thread Kirill Peskov
Hi All!

A rookie question... ;)

I've got a project where 'source' code of the web application (PHP)
comes from SVN repo and the installers (for the deb and rpm packages) do
come from GIT (each from separate repository). What would be the best 
approach to automate such a build (I know it's a fake build because of PHP, 
but anyway...) in Jenkins? At the end of the day I would like to trigger the
Job not only by changes in main PHP source, but by changes in any of 
installers as well...

Maybe I'm wrong, trying to create one complex job with multiple build
steps and having 3 different jobs for that would be better (maybe even
more, because installer for Windoze stays in product roadmap as well, so
sooner or later it will be necessary to create one).

Cheers,

Kirill

-- 
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/8fac91e9-e610-53af-7c57-f1be4c394a6c%40paranoid.email.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to connect to to the git repository, can any one please suggest what is wrong with the configuration

2017-05-15 Thread Victor Martinez


Hi there,


As far as I see there is a error trace


ERROR: Timeout after 10 minutes



What does it mean? Default cloning/git operations within the Git Plugin for 
jenkins is about 10 minutes. Therefore, if there is a network latency or 
the git repo is massive then you might need to tune/tweak it accordingly.


How long does it take to clone that repo manually? 


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/145d1410-4a8b-4d95-b3e0-73602490fb25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to connect to to the git repository, can any one please suggest what is wrong with the configuration

2017-05-15 Thread bharat Joshi
I am getting below exception while trying to fetch the files from the git Repo


Building in workspace C:\Program Files (x86)\Jenkins\workspace\Git Example
 > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files\Git\bin\git.exe config remote.origin.url 
 > https://git.etb.tieto.com/xx/x.git
 >  # timeout=10
Fetching upstream changes from https://git.etb.tieto.com/xxx/xx.git
 > C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_ASKPASS to set credentials
 > C:\Program Files\Git\bin\git.exe fetch --tags --progress 
 > https://git.etb.tieto.com/x/x.git +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
ERROR: Error fetching 
remote repo 'origin'
hudson.plugins.git.GitException:
 Failed to fetch from https://git.etb.tieto.com/xx/x.git
at 
hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
at 
hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
at 
hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at 
hudson.scm.SCM.checkout(SCM.java:496)
at 
hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at 
hudson.model.Run.execute(Run.java:1728)
at 
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at 
hudson.model.ResourceController.execute(ResourceController.java:98)
at 
hudson.model.Executor.run(Executor.java:405)
Caused by: 
hudson.plugins.git.GitException:
 Command "C:\Program Files\Git\bin\git.exe fetch --tags --progress 
https://git.etb.tieto.com/xx/x.git +refs/heads/*:refs/remotes/origin/*" 
returned status code -1:
stdout:
stderr:
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
... 11 more
ERROR: null
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/HKXPR0401MB1798F023668783EBCECAB396D8E60%40HKXPR0401MB1798.apcprd04.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Cucumber report plugin, How can I get custom Output text to show on the report

2017-05-15 Thread James Nord
https://gist.github.com/aslakhellesoy/4072962

-- 
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/d578f046-a3ef-4517-9937-ed6dfb84113b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cucumber report plugin, How can I get custom Output text to show on the report

2017-05-15 Thread James Nord
I'm pretty sure I implemented this... Which plugin are you using in jenkins 
(there are about 3 or 4 of them :( ) 

-- 
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/e4d42029-3bf6-42f1-83d8-91c8f40fcbf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Chrome autofilling

2017-05-15 Thread Richard Ginga
Mark, we recently implemented LastPass. Thank You! I would never have made
that connection

On Mon, May 15, 2017 at 3:27 PM, Mark Waite 
wrote:

> My most recent auto-fill problems were coming from my deep attachment to
> LastPass.  It was auto-filling fields in Jenkins forms.  If you're a
> LastPass user, you might need to disable the form filling settings in the
> LastPass preferences.
>
> If you're not a LastPass user, sorry for the distraction.
>
> Mark Waite
>
> On Mon, May 15, 2017 at 10:29 AM Richard Ginga 
> wrote:
>
>> For the past 3 weeks, when I configure some long existing free-style
>> jobs, Chrome seems to be auto "changing" fields like project name, some
>> conditional fields, some plugin parameters fields. If I go to configure and
>> then go back to the project dashboard, it asks me to stay or leave as if
>> there has been changes.
>>
>> I have uninstalled Chrome and then re-installed it and it seems to behave
>> ok for a short while and then, bam, it does it again.
>>
>> Any ideas? we have not upgraded Jenkins is several months, so nothing had
>> changed there. we're running 2.7.4
>>
>> --
>> Dick Ginga
>> Build Engineer
>> rgi...@disruptorbeam.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/CAL3PpaV338jd_p8KL8KA90s%
>> 2B9VyV%2BuALQ0d%3DOpycOe6a4J%2BU0A%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/CAO49JtHrBJgzdVDEzY2r6TSg_R0itMv6dMArwzLYpJ6jyPSuKw%
> 40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dick Ginga
Build Engineer
rgi...@disruptorbeam.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/CAL3PpaWMUswUurZwhwsmc7XRVvnzZEOPdzjkdwFyfHHfeXb-cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Chrome autofilling

2017-05-15 Thread Mark Waite
My most recent auto-fill problems were coming from my deep attachment to
LastPass.  It was auto-filling fields in Jenkins forms.  If you're a
LastPass user, you might need to disable the form filling settings in the
LastPass preferences.

If you're not a LastPass user, sorry for the distraction.

Mark Waite

On Mon, May 15, 2017 at 10:29 AM Richard Ginga 
wrote:

> For the past 3 weeks, when I configure some long existing free-style jobs,
> Chrome seems to be auto "changing" fields like project name, some
> conditional fields, some plugin parameters fields. If I go to configure and
> then go back to the project dashboard, it asks me to stay or leave as if
> there has been changes.
>
> I have uninstalled Chrome and then re-installed it and it seems to behave
> ok for a short while and then, bam, it does it again.
>
> Any ideas? we have not upgraded Jenkins is several months, so nothing had
> changed there. we're running 2.7.4
>
> --
> Dick Ginga
> Build Engineer
> rgi...@disruptorbeam.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/CAL3PpaV338jd_p8KL8KA90s%2B9VyV%2BuALQ0d%3DOpycOe6a4J%2BU0A%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/CAO49JtHrBJgzdVDEzY2r6TSg_R0itMv6dMArwzLYpJ6jyPSuKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Shared Library - reference global in library-defined class

2017-05-15 Thread Christopher Burke
Hi

   I'm testing out use of shared libraries by trying to expand on some of 
the sample code 
from https://jenkins.io/doc/book/pipeline/shared-libraries/. I created the 
'sayHello' step and thought I'd try to call that step from a class with the 
goal of being able to provide pre-packaged pipelines in the form of a 
class, with the flexibility of using the steps directly if necessary. I've 
tried multiple variations of the 'execute' method in HelloWorldPipeline, 
but can't seem to figure out how to reference the 'sayHello' step. 
Compounding my confusion is the error message I get seems to indicate that 
'sayHello' is in fact present in globals:

[Pipeline] End of Pipelinejava.lang.NoSuchMethodError: No such DSL method 
'sayHello' found among steps [ArtifactoryGradleBuild,..., zip] or symbols 
[all,..., zip] or globals [Artifactory, currentBuild, docker, env, params, 
pipeline, *sayHello*, scm]

at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:149)
at 
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)...


The file structure and code that I'm using follows. Any help would be greatly 
appreciated! 


   Thanks!


   --- Chris


(project root)
+- src 
|   +- test
|   +- HelloWorldPipeline.groovy // calls
+- vars
|   +- sayHello.groovy


// vars/sayHello.groovy

def call(String name = 'human') {
echo "Hello, ${name}."
}


// src/test/HelloWorldPipeline
package test


class HelloWorldPipeline implements Serializable {

def script
def name

HelloWorldPipeline(def script, def name) {
this.script = script
this.name = name
}

def execute() {
this.script.sayHello this.name
// script.sayHello() // - same error
// sayHello("test")  // - same error
}
}


// Jenkinsfile
new test.HelloWorldPipeline(steps, 'user').execute();




-- 
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/67afb6c0-7404-485b-a8d4-37cc23fc7c36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


java.lang.NoClassDefFoundError: hudson/remoting/PipeWindow$Key Error in jenkins

2017-05-15 Thread venkatesh guttal
Hi ,

I am getting below error when we start the build.

*java.lang.NoClassDefFoundError: hudson/remoting/PipeWindow$Key*
at hudson.remoting.Channel.getPipeWindow(Channel.java:802)
at hudson.remoting.ProxyOutputStream.connect(ProxyOutputStream.java:85)
at hudson.remoting.ProxyOutputStream.(ProxyOutputStream.java:71)
at 
hudson.remoting.RemoteOutputStream.readObject(RemoteOutputStream.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
at 
hudson.util.StreamTaskListener.readObject(StreamTaskListener.java:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:217)
at hudson.remoting.UserRequest.perform(UserRequest.java:131)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at ..remote call to _Daily(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
at hudson.remoting.Channel.call(Channel.java:830)
Caused: java.io.IOException: Remote call on xxx_Daily failed
at hudson.remoting.Channel.call(Channel.java:838)
at hudson.Launcher$RemoteLauncher.launch(Launcher.java:959)
at hudson.Launcher$ProcStarter.start(Launcher.java:384)
at 
hudson.plugins.clearcase.HudsonClearToolLauncher.getLaunchedProc(HudsonClearToolLauncher.java:71)
at 
hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:143)
at 
hudson.plugins.clearcase.ClearToolExec.startView(ClearToolExec.java:820)
at 
hudson.plugins.clearcase.action.BaseDynamicCheckoutAction.startView(BaseDynamicCheckoutAction.java:138)
at 
hudson.plugins.clearcase.action.BaseDynamicCheckoutAction.checkout(BaseDynamicCheckoutAction.java:71)
at 
hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:390)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405

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

RE: Syntax for "mail to" in declarative script?

2017-05-15 Thread David Aldrich
I'm a little further on - I've added a call to emailext.  Below is declarative 
script.  But I get error:

An attempt to send an e-mail to empty list of recipients, ignored.

How can I set the recipients list?  Do I need another script step?

stages {
stage('build') {
steps {
sh 'python --version'
}
}
}
post {
success {
script: emailext (subject: "STARTED: Job '${env.JOB_NAME} 
[${env.BUILD_NUMBER}]'",
  body: """STARTED: Job '${env.JOB_NAME} 
[${env.BUILD_NUMBER}]':
  Check console output at "${env.JOB_NAME} [${env.BUILD_NUMBER}],
  recipientProviders: [$class: 
'DevelopersRecipientProvider']])
}
}
}

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


Chrome autofilling

2017-05-15 Thread Richard Ginga
For the past 3 weeks, when I configure some long existing free-style jobs,
Chrome seems to be auto "changing" fields like project name, some
conditional fields, some plugin parameters fields. If I go to configure and
then go back to the project dashboard, it asks me to stay or leave as if
there has been changes.

I have uninstalled Chrome and then re-installed it and it seems to behave
ok for a short while and then, bam, it does it again.

Any ideas? we have not upgraded Jenkins is several months, so nothing had
changed there. we're running 2.7.4

-- 
Dick Ginga
Build Engineer
rgi...@disruptorbeam.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/CAL3PpaV338jd_p8KL8KA90s%2B9VyV%2BuALQ0d%3DOpycOe6a4J%2BU0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Cucumber report plugin, How can I get custom Output text to show on the report

2017-05-15 Thread Jason Koelewyn
We have a lot of result text that shows in the console, but not in the 
report when our cuke tests run.
Is there any way to raise those messages so they show on the report?

Thank you
Jason

-- 
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/92b799ec-3afe-450e-8228-83d5bdf77df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Publishing MSTests in pipeline

2017-05-15 Thread Thiago Carvalho Davila
Hi,

I'm having problems to transpose the use of MSTest Plugin to pipeline as code. 
I don't know the correct syntax, but I think is something like:

    stage('Unit Tests'){
    steps {
    echo "\"${tool 'vstest.console_v14'}\" ${VSTest_TestFiles} 
${VSTest_Args}"
    bat "\"${tool 'vstest.console_v14'}\" ${VSTest_TestFiles} 
${VSTest_Args}"
    }
    post {
    always {
    msTest {
    pattern('**/*.trx')
    }
    }
    }
    }
​
Thanks!

Best regards,

Thiago

-


"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa 
pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada 
exclusivamente a seu destinatário e pode conter informações confidenciais, 
protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e 
sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, 
por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a 
government company established under Brazilian law (5.615/70) -- is directed 
exclusively to its addressee and may contain confidential data, protected under 
professional secrecy rules. Its unauthorized use is illegal and may subject the 
transgressor to the law's penalties. If you're not the addressee, please send 
it back, elucidating the 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/f037d559ff1da9b1489fb30d52cb528623260c2b%40serpro.gov.br.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative Pipeline - Pipeline Shared Library

2017-05-15 Thread 'Daniel' via Jenkins Users
As far as I know, the chances are low that this will be implemented any 
time soon, for various (including technical) reasons.

At FOSDEM I talked to Andrew Bayer, the author of declarative pipeline 
about this, and the conclusion was that you don't have to use declarative 
pipeline.
Use it when it fits for you, otherwise use the scripted pipeline. Therefore 
I continue to use the scripted pipeline.

Am Montag, 15. Mai 2017 15:51:13 UTC+2 schrieb ctrlengi...@gmail.com:
>
> I am really looking for this feature too. so far my efforts have 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/3381c60d-504c-4463-a59b-cc238e021bbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Attempting to use the node and label plugin to launch

2017-05-15 Thread BenH
Hi,

I'm attempting to use the node and label plugin to execute a project that 
does some initialization on a slave node.  I want this project to execute 
on each node that has a specific label.  I've read the documentation for 
the node and label add-in and it seems like this is pretty easy to 
configure.  

I have a projection called "Sync_Thirdparty", that has a parameter, called 
"TargetNodelLabel", which is a node label parameter.  This configuration is 
shown below.  Note that I have the "Run on all nodes matching label" option 
selected.  I have a couple of slave nodes that are configured with the 
ci_build label.  To test it out, I execute the project by clicking the 
"Build with Parameters" link on the project.  This lets me specify my 
"ci_build" label and even shows both of the expected slave nodes when I 
click the "Show nodes" button (see second snapshot below). However, when I 
execute the project, it only executes on one of the nodes.  I did some 
reading and found that this was identified as a bug (JENKINS-22185 
), which was fixed.  I 
have the latest version of this plug-in installed, but am seeing the buggy 
behavior.  Am I misunderstanding how I should be configuring the plug-in 
for this project?

Project Configuration:






Project Execution:











-- 
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/98d9197b-3ad5-4c66-9608-82451b6cf169%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: BlueOcean Pipeline and huge number of parallel steps

2017-05-15 Thread Clément Gautier
up ?

On Friday, May 12, 2017 at 2:16:01 PM UTC+2, Clément Gautier wrote:
>
> Hello there :)
>
> We have in our company a build that launch a lot of tests on our code base 
> and result in more that 400 paralell branches, each of them executed on a 
> different slave node.
> Actually we face an issue where pipeline can't display all the parallel 
> branches: "Unable to display more"
> We don't even want them to be rendered as separated steps, we just want 
> them to be launched simultaneously.
>
> The pipeline we have actually looks like this (The problem occurs on the 
> Functional tests part):
>
> Build --- Unit Tests --- Integration Tests --- Functional Tests ---
>  |  | 
>  |
>   tool Asuite A 
> matrix-A-A-batch 0
>   tool Bsuite B 
> matrix-A-A-batch 1
>   tool C   
>  matrix-A-A-batch 2
>   
>  matrix-A-A-batch 3
>   
>   
>   
>  "Unable to display more"
>
>  
> I don't know if I this issues will fix my issue and how I can contribute 
> on them:
> * https://issues.jenkins-ci.org/browse/JENKINS-41205
> * https://issues.jenkins-ci.org/browse/JENKINS-38442
>
> Am I using Jenkins the good way ? I mean it is supposed to be able to 
> handle a very large amount of slave nodes,
> so I assume you can use all of them in the same pipeline if you have 
> thousands of browser tests to be run on a large matrix right ?
>
> Do you know if I could use something else than parallel that could fit?
>
> Thanks a lot 
>
>

-- 
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/ad6dcf2a-00b2-468f-9bfa-8c84ae16b121%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative Pipeline - Pipeline Shared Library

2017-05-15 Thread ctrlengineeringuk
I am really looking for this feature too. so far my efforts have 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/3937266e-8da5-4290-a9a6-8b3b0ea868b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Syntax for "mail to" in declarative script?

2017-05-15 Thread David Aldrich
Asking my question another way:

Where can I find a list of objects / variables that a script can access, e.g. 
${currentBuild.fullDisplayName} ?

Best regards

David

> -Original Message-
> From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-
> us...@googlegroups.com] On Behalf Of David Aldrich
> Sent: 15 May 2017 13:19
> To: jenkinsci-users@googlegroups.com
> Subject: Syntax for "mail to" in declarative script?
> 
> Hi
> 
> Where can I find a definition and syntax for "mail to" for a declarative 
> script?
> 
> Specifically I want to know:
> 
> 1) Is it possible to specify a recipient by user name rather than full email
> address?
> 2) How to specify 'committers'?
> 3) How can I set the message body to be similar to that sent by a traditional
> Jenkins job (i.e. result, change summary, and tail end of console output) ?
> 
> Best regards
> 
> David
> 
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-
> users/25b2d3d8ea2945e3b984a245b76e64dc%40EUX13SRV1.EU.NEC.COM.
> For more options, visit https://groups.google.com/d/optout.
> 
> 
>  Click
> https://www.mailcontrol.com/sr/AwURFJXg0gXGX2PQPOmvUnR5FqKQsdnpf
> CFmutQSpk3Ud74aUasi!U6pqUrLpVx4LmpRHg8Q9WoJwVIOzJj0SQ==  to
> report this email as spam.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/354de4cef70b4c9997653b516eac6196%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


pipeline script : Job Weight

2017-05-15 Thread Kenneth Johansson
We have been using the heavy job plugin and configured the nodes so that 
they have as many executors as cpus.
There we could set in the job the job weight to as many cpus the job 
really used.


But we shifted over to using pipeline and groovy script and now that 
parameter is not possible to set in the job config.


Is there some way I can make this work from the groovy script ?


Right now I have this code in the node() part that reads out how many 
cpus there is on the node that was assigned.

node_cpus = sh(script: "nproc", returnStdout : true).trim() as Integer
but that is already after jenkins has assigned a node so that is 
probably to late to be useful.


Basically the build is going to use all cpus that exist on the build 
machine. But in reality only 20% of the time is it actually parallel 
enough to use more than 2-3 cpus at the same time so we want to have the 
job weight be about 25% of the real value.


So as long as this is the only type we have we could just assign 4 
execution units on the node but that fails if we add a job that really 
can use all the cpus all the time then that job really need to take the 
full number of execution units.


suggestions?


--
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/8ead9628-a4d0-23fe-f978-e4c952f64ce5%40inteno.se.
For more options, visit https://groups.google.com/d/optout.


Syntax for "mail to" in declarative script?

2017-05-15 Thread David Aldrich
Hi 

Where can I find a definition and syntax for "mail to" for a declarative script?

Specifically I want to know:

1) Is it possible to specify a recipient by user name rather than full email 
address?
2) How to specify 'committers'?
3) How can I set the message body to be similar to that sent by a traditional 
Jenkins job (i.e. result, change summary, and tail end of console output) ?

Best regards

David

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/25b2d3d8ea2945e3b984a245b76e64dc%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Default way to see workspace in Blue Ocean

2017-05-15 Thread James Nord
If you want to see the files (rather than parsed results from files) then you 
need to fall back to the classic UI to browse the workspace (on the build, 
workflow steps, find the node containing the bit you want, go to that step, 
click browse workspace) 
Workspaces are designed to be ephemeral so may not be available after the step 
has completed depending ding on your agent setup

-- 
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/8963e57e-e5f5-4839-8d20-ab7030ba8dfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Default way to see workspace in Blue Ocean

2017-05-15 Thread Thiago Carvalho Davila
Hi,

This is a very basic question. I want to see the files downloaded from de SCM 
and resulting files (compilations, analysis, etc). What is the default way of 
doing that in Blue Ocean? Do I have to install a plugin just for that? What 
options do I have?

Thanks,

Thiago

-


"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa 
pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada 
exclusivamente a seu destinatário e pode conter informações confidenciais, 
protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e 
sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, 
por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a 
government company established under Brazilian law (5.615/70) -- is directed 
exclusively to its addressee and may contain confidential data, protected under 
professional secrecy rules. Its unauthorized use is illegal and may subject the 
transgressor to the law's penalties. If you're not the addressee, please send 
it back, elucidating the 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/30d6ece00844427ebb04bcdb4787e74839a1408c%40serpro.gov.br.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Upgrade Wizard fails from 1.609.3 -> 2.46.2

2017-05-15 Thread sweeney


On Thursday, May 4, 2017 at 12:49:53 PM UTC+1, Daniel Beck wrote:
>
>
> > On 03.05.2017, at 17:51, sweeney > wrote: 
> > 
> > I can see no way to easily upgrade to the latest Jenkins 2 goodies.  Any 
> advice? 
>
> These plugins are available on the Jenkins plugin manager. Just check the 
> 'available' tab and install from there. 
>
> I know _that_, I can even see them all listed by the upgrade wizard if I 
expand the groups.  But there's over 100 of them and I was hoping that 
there was a small number of metapackages I could install to achieve the 
same result as the failed install wizard.  My alternative is to 
verify/install over 100  packages by hand.

-- 
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/50a178da-9b4c-491d-8d92-c65d5f954d1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Invoking a declarative pipeline from shared libraries

2017-05-15 Thread ctrlengineeringuk
Hi,

I am trying to invoke my declarative pipeline from shared libraries (so my 
jenkinsfile is as brief as possible) but it doesn't seem to work properly 
and the "pipeline" block seems to get executed, but functions like "when" 
are not evaluated...

Jenkinsfile:

#!groovy
def application = Constants.SONARQUBE_POC
def build = new 
org.ppluk.JenkinsPipelineBootstrap().setupBuild(application.name, 
application.next_version)


Shared library:
#!groovy
// vim: set syntax=groovy:
// Author: 
// Description: Declarative Pipeline Bootstrap actions

package org.ppluk


String setupBuild(String applicationName, String nextVersion) {
pipeline {
agent { label "Java" }
tools { maven "M3" }
stages {
stage('test') {
when { branch "feature/*" }
steps {
echo "helloworld"
}
}
}
}}

Is what I am attempting to do actually possible? 

-- 
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/d799363c-4519-4a47-be6f-f1fd1c4d2730%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0 pipeline as code executor question

2017-05-15 Thread Marslo Jiao
I think this is the Jenkins Slave issue. And create a issue 
at: https://issues.jenkins-ci.org/browse/JENKINS-44267

-- 
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/ca4d735e-e1ef-408a-9fe1-0c76140487d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Setting a default value of a build parameter

2017-05-15 Thread Will Newton

Hi,

I think I have a simple question but I am new to Jenkins so I'm not sure 
how best to solve it.

I have two parameters to my build (ghprbSourceBranch and ghprbActualCommit) 
one of which I want to use to name my build so I have the branch name in 
the build name, and one I use to select the actual commit to build. This 
works fine when called from the pull request builder. However I also want 
to be able to build the same job manually (Build With Parameters). I don't 
want to have to specify both parameters as this is error prone The end 
result of this is that I want to be able to name my job:

if ($ghprbSourceBranch != "")
  Build Name = job-${ghprbSourceBranch}
else
  Build Name = job-${ghprbActualCommit}

Is there a way to do this? I tired setting Build Name with POSIX shell 
substitution - ${ghprbSourceBranch:-$ghprbActualCommit} - but it didn't 
work.

Any help greatly appreciated, 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/c1dd2a06-26b4-4b4d-9bde-95e8b2d5589e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Global properties - Environment variables displayed wrongly on GUI

2017-05-15 Thread Limor Shemesh
i'm using Jenkins 2.60 - on the Manage Jenkins - Configure System -
the Global properties - Environment variables - display the same variable 
as the number of the variables that defined in config.xml.
In the config.xml  the variables are correct.
Is it known issue? Is there something I can do to fix 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/aeeea406-ac10-4d6b-9302-e6bd95ee07a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


get numer of lines,lines after and lines before function in groovy template for email-ext

2017-05-15 Thread venkatesh guttal
Hi,

I am using below groovy script template for my usage..





<% if(build.result==hudson.model.Result.SUCCESS) { %>

CONSOLE OUTPUT
<% build.getLog(20).each() { line -> %>

${org.apache.commons.lang.StringEscapeUtils.escapeHtml(line)}
<% } %>


<% } %>



*Is there any function to get number of line ?*, build.getLog(20)--> here 
we are passing value as 20, i want to put this value in variable and pass 
to getLog function.

*Is there any function for lines after and lines before?*


-- 
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/c0043e79-74dd-4262-a114-ab0dd1817910%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.