[JIRA] (JENKINS-41950) Errors in agent instantiation and checkout not surfaced if post has node-requiring steps

2 views
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Feb 11, 2017, 1:06:02 PM2/11/17
to jenkinsc...@googlegroups.com
Andrew Bayer created an issue
 
Jenkins / Bug JENKINS-41950
Errors in agent instantiation and checkout not surfaced if post has node-requiring steps
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Feb/11 6:05 PM
Priority: Critical Critical
Reporter: Andrew Bayer

If there's an error in the top-level agent instantiation (say, due to a checkout failing or non-existent Docker image, etc), and the post for the build includes steps that require running on a node (such as deleteDir() or emailext), those post steps will fail and end up being the only reported errors, preventing any visibility into what actually went wrong in the agent. We need to handle those error cases better.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Feb 11, 2017, 1:13:01 PM2/11/17
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Bug JENKINS-41950
 
Change By: Andrew Bayer
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Feb 11, 2017, 1:32:01 PM2/11/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Feb 11, 2017, 1:33:01 PM2/11/17
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Feb 17, 2017, 10:44:02 AM2/17/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java
pipeline-model-definition/src/test/resources/nonExistentDockerImage.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/de9286d6e917e156a6b629bfc595dba1dd3b444b
Log:
[FIXED JENKINS-41950] Properly report errors outside stages

And treat errors in post-build the same whether we're running
post-build within the agent block or not.

andrew.bayer@gmail.com (JIRA)

unread,
Feb 17, 2017, 10:44:02 AM2/17/17
to jenkinsc...@googlegroups.com
 

Merged. Will be in 1.0.2 release.

Change By: Andrew Bayer
Status: In Review Resolved
Resolution: Fixed

scm_issue_link@java.net (JIRA)

unread,
Feb 23, 2017, 3:23:01 PM2/23/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java
pipeline-model-definition/src/test/resources/nonExistentDockerImage.groovy

[FIXED JENKINS-41950] Properly report errors outside stages

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:56 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages