ordering post build actions

47 views
Skip to first unread message

Arpit Gupta

unread,
Apr 7, 2015, 10:43:55 AM4/7/15
to jenkins...@googlegroups.com
Hi All

I searched the group to see if ordering post build actions was possible and i found this jira https://issues.jenkins-ci.org/browse/JENKINS-7408. However i am noticing that the order in which the post build actions are executed does not seem to be the order in which they appear in the job config page.

For example for some of the jobs i had the following 2 post build actions
1. trigger downstream job
2. delete workspace

It would end up deleting the workspace first and thus the downstream job would fail as it was looking for a properties file in the workspace. I am working around it by not deleting the workspace but was curious if it is possible to order post build actions and if so is the above scenario a bug? I am on v1.607 but saw this in earlier versions as well. Do not recall the exact version.

Thanks
Arpit

CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.

Eric Pyle

unread,
Apr 7, 2015, 11:57:01 AM4/7/15
to Jenkins Users
In this case, I'd say you should archive the properties file as an artifact, and then retrieve it in the downstream job using the Copy Artifact plugin.

--
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/0786c896-83d9-4d95-ba38-c8b716d235a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Eric Pyle
Build Manager
CD-adapco - Lebanon, NH Office
+1 603-643-9993 x24161 (T)
+1 603-359-8670 (M)
eric...@cd-adapco.com
www.cd-adapco.com
CD-adapco logo and social media buttons

Arpit Gupta

unread,
Apr 7, 2015, 12:02:17 PM4/7/15
to jenkins...@googlegroups.com
Yup that will work that is why for now i just disabled deleting of the workspace. But the issue become’s bigger when i add more post build actions that want to use the scripts checkout from git into the workspace. I would prefer not to archive files for just this use case. So was curious if ordering was supported.

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/

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/SRHJDJFnTQw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPrXuH3rAEzzEEXEzKQUMV_W9f1yUa%3DoTr%3D2ETk%3DWtiTg4Viow%40mail.gmail.com.

Arpit Gupta

unread,
Apr 8, 2015, 2:43:04 PM4/8/15
to jenkins...@googlegroups.com
ended up logging https://issues.jenkins-ci.org/browse/JENKINS-27852 just to see if my assumption that the order the post build actions are in is the order they should be executed in.


--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/

Reply all
Reply to author
Forward
0 new messages