Re: Declarative script syntax: Archive from specific stage?

2020-01-23 Thread Liejun Tao
According to doc this is supported: https://jenkins.io/doc/book/pipeline/syntax/#post Syntax is like this https://code-maven.com/slides/jenkins-intro/pipeline-post On Thu, Jan 23, 2020 at 11:45 AM David Aldrich wrote: > > > Did you try to write post after stage? > > > It seems that is not allowe

Re: JNLP agent and proxy

2020-01-23 Thread Simon Richter
Hi, On Thu, Jan 23, 2020 at 11:23:22AM -0700, Jeff Thompson wrote: > If you click that, one option that becomes visible is "Tunnel > connection through". This *might* work for you. Read the inline help > and try it to see if it meets your needs. Perfect, that seems exactly like what I need. I'll

Re: JNLP agent and proxy

2020-01-23 Thread Jeff Thompson
On the agent (node) configuration page when configuring to "Launch agent by connecting it to the master" there is an Advanced button. If you click that, one option that becomes visible is "Tunnel connection through". This *might* work for you. Read the inline help and try it to see if it meets

Re: Declarative script syntax: Archive from specific stage?

2020-01-23 Thread David Aldrich
> Did you try to write post after stage? It seems that is not allowed: WorkflowScript: 140: Expected a stage @ line 140, column 9. post{ ^ On Thu, Jan 23, 2020 at 4:34 PM David Aldrich wrote: > > try this url > > > https://Jenkins.io/doc/pipeline/tour/tests-and-artifac

Re: Declarative script syntax: Archive from specific stage?

2020-01-23 Thread Liejun Tao
Did you try to write post after stage? stages { stage(‘S1’) { agent { label “A” } steps { } post { xxx } stage(‘S2’) { agent { label “B” } steps { } } On Thu, Jan 23, 2020 at 10:35 AM David Aldrich wro

Re: Declarative script syntax: Archive from specific stage?

2020-01-23 Thread David Aldrich
> try this url > https://Jenkins.io/doc/pipeline/tour/tests-and-artifacts/ Thanks, but that doesn't address my situation where I have stages running on different agents and I want to archive results from a specific agent. > -- You received this message because you are subscribed to the Google

Re: [ec2-fleet] java.util.concurrent.CancellationException

2020-01-23 Thread Alan Sparks
Was able to get answer via GitHub issue: https://github.com/jenkinsci/ec2-fleet-plugin/issues/167 Was a bug in ec2-fleet plugin, fixed in version 1.17.3 of the plugin. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this gr

Kohsuke's next chapter

2020-01-23 Thread Kohsuke Kawaguchi
Hi folks, 2020 is going to be a year of change for me. I just posted this to explain what that means. The past few years saw a rise of the new wave of leaders. So I'm making this move with peace knowing that this project is in good h

Re: Declarative script syntax: Archive from specific stage?

2020-01-23 Thread vince bailey
try this url https://Jenkins.io/doc/pipeline/tour/tests-and-artifacts/ > On 23 Jan 2020, at 16:12, David Aldrich wrote: > > > I have a question about declarative script syntax. > > I have a multi-stage job, where each stage runs on

Declarative script syntax: Archive from specific stage?

2020-01-23 Thread David Aldrich
I have a question about declarative script syntax. I have a multi-stage job, where each stage runs on a separate agent. Whether the job passes or fails, I want to archive some artefacts from the job, so I have to call archiveArtifacts from post::cleanup(). stages { stage(‘S1’) {

Re: failed to download the workflow-api plugin

2020-01-23 Thread Mark Waite
On Thu, Jan 23, 2020 at 7:37 AM Markus Boos wrote: > I still have the Issue. Downloading other Plugins works like a charm. > Only manual installation works! > > Is there any posibility to build a local Jenkins Plugin proxy. Like for > apt? > > Yes, there are techniques to create update center pro

Re: failed to download the workflow-api plugin

2020-01-23 Thread Markus Boos
Thanks. I know. As I wrote, other plugins work without an issue. But the Server is not reliable even with manual download I got errors while downloading. Am Donnerstag, 23. Januar 2020 15:40:11 UTC+1 schrieb vince bailey: > > You need to check if you can ping the outside world to start with i.e

Re: failed to download the workflow-api plugin

2020-01-23 Thread vince bailey
You need to check if you can ping the outside world to start with i.e the internet. if you can not it means something is blocking your connection, maybe a firewall so check your settingd. > On 23 Jan 2020, at 14:36, Markus Boos wrote: > > I still have the Issue. Downloading other Plugins work

Re: failed to download the workflow-api plugin

2020-01-23 Thread Markus Boos
I still have the Issue. Downloading other Plugins works like a charm. Only manual installation works! Is there any posibility to build a local Jenkins Plugin proxy. Like for apt? Am Donnerstag, 23. Januar 2020 15:20:56 UTC+1 schrieb vince bailey: > > All working well no issues for me. > > > On 2

Re: failed to download the workflow-api plugin

2020-01-23 Thread vince bailey
All working well no issues for me. > On 23 Jan 2020, at 14:19, Mark Waite wrote: > > I just downloaded an update to the Pipeline SCM Step plugin without any > issue. I also am able to download the plugin URL's that you referenced. > > Are you still seeing the problem? > > On Thu, Jan 23, 20

Re: failed to download the workflow-api plugin

2020-01-23 Thread Mark Waite
I just downloaded an update to the Pipeline SCM Step plugin without any issue. I also am able to download the plugin URL's that you referenced. Are you still seeing the problem? On Thu, Jan 23, 2020 at 7:17 AM Markus Boos wrote: > Hi > > Since this morning (CET) my Jenkins 2.164.2 is not able

failed to download the workflow-api plugin

2020-01-23 Thread Markus Boos
Hi Since this morning (CET) my Jenkins 2.164.2 is not able to download the workflow-api plugin (Version 2.33 and 2.38). The error log looks like this (C&P from the updateCenter): *java.net.SocketTimeoutException: Read timed out* * at java.net.SocketInputStream.socketRead0(Native Method)* * at j

Re: Git Plugin - How specify use ssh in "Repository URL" ?

2020-01-23 Thread vince bailey
Hi all, You may need to make sure you have a user name and login to your git repo and 1. login to github using your account. or create a access token in git hub and use the token which is the way i did it. > On 23 Jan 2020, at 10:52, 'Björn Pedersen' via Jenkins Users > wrote: > > HI,

Pipeline - Define checkout outside of Jenkinsfile

2020-01-23 Thread zakyn
Hello, I would like to ask you if it is possible to define git repository for checkout outside of jenkinsfile and then for the build loads the steps from jenkins file. I was not able to find it in Jenkins job configuration. I could add polling, and other things but not SCM. Is there any way p

JNLP agent and proxy

2020-01-23 Thread Simon Richter
Hi, I'd expect this to be somewhat obvious, but it doesn't seem to be: I have a JNLP agent on a Windows VM that should talk to the Jenkins master on another VM in the same network. The Jenkins master has a standard nginx proxy before it to allow external requests to come in. The agent now connect

Re: Git Plugin - How specify use ssh in "Repository URL" ?

2020-01-23 Thread 'Björn Pedersen' via Jenkins Users
HI, that is a hostkey verifiicaction error. Solution: a) manually install the hostkey on the build agent b) configure ssh to skip hostkey verification (the more insecure option) Björn Am Dienstag, 21. Januar 2020 18:24:55 UTC+1 schrieb Ed of the Mountain: > > *What I Tried:* > > 1) Set *Sourc