Re: Pipeline 2.0: How to apply multiple wrappers?

2016-12-14 Thread thokari81
Nevermind it actually does work this way.

-- 
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/2e824449-fd51-4f9c-b684-c93629f6108a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline 2.0: How to apply multiple wrappers?

2016-12-14 Thread thokari81
I would like to do this:


stage {
timestamps {
ansiColor('xterm') {
sh 'echo "Hello World"'
}

}
}

Or, using alternative syntax:


stage {
wrap([$class: 'TimestamperBuildWrapper']) {
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
sh 'echo "Hello World"'
}

}
}


Unfortunately, the second wrapper just gets ignored, so in the above case, 
I see only timestamps, but no color.

Using the Job-DSL, this was extremely straightforward:

wrappers {
timestamps()
colorizeOutput()
}

How to solve this problem?

-- 
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/378ec6b1-8698-4c22-b527-1bfc20ca214a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need info on Jenkins

2016-12-14 Thread thokari81
Jenkins runs on Windows just fine. Just put a slave on the Windows machine.

Am Mittwoch, 14. Dezember 2016 09:14:29 UTC+1 schrieb Dirk Heinrichs:
>
> Am 14.12.2016 um 08:58 schrieb Christoph Nenning:
>
> > 1- I want to use Jenkins as a framework for testing our Windows 
> > Desktop applications (not web apps).  Can I do so?  I imagine I can. 
> > 
>
> Yes you can :) 
> Jenkins basically just copies files and runs scripts. So you can use it 
> for all kinds of stuff.
>
>
> How's the "desktop" part done, given that Jenkins runs on a remote server? 
> On Linux, one can use the Xvfb plugin to provide a virtual X server, but 
> what about Windows?
>
> Bye...
>
> Dirk
> -- 
> *Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline
> [image: 
> http://mimage.opentext.com/alt_content/binary/images/email-signature/recommind-ot.png]
>  
> 
> *Tel*: +49 2226 159666 (Ansage) 1149
> *Email*: dirk.he...@recommind.com 
> *Skype*: dirk.heinrichs.recommind
>
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>
> Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon 
> Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 
> 10646
>
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>
> www.recommind.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/570f74a7-ec9d-453c-9d2d-1f370908ccf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to combine Pull-Request Pipeline with existing Jobs?

2016-12-14 Thread thokari81
I want to set up a pipeline using a Jenkinsfile, and then use the GitHub 
Organization Folder plugin to build Pull Requests.

I would like to reuse existing Jobs to do the work, i.e. use several 
"build" steps in the pipeline.

The problem is that these build steps previously had the branch to build as 
input, but now this needs to be supplied by the Pipeline mechanism.

I know there is the magic "checkout scm" statement that should be used to 
check out the correct branch, but since the rest of the "stage" is calling 
"build", this is not working this way.

Would the suggested solution to my problem be to convert the Jobs to a 
"Jenkins 2.0 library" ?

-- 
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/3f4117c2-33bf-438c-b3f8-ed4cb75a9c45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.