Can axis have access to build/project information?

20 views
Skip to first unread message

Gavin Mogan

unread,
Dec 18, 2015, 6:41:50 PM12/18/15
to Jenkins Developers
I'm working on porting my plugin to use credential system, but have run into a bit of a road block.

https://github.com/jenkinsci/sauce-ondemand-plugin/blob/master/src/main/java/hudson/plugins/sauce_ondemand/BrowserAxis.java#L61-L64 is using global credentials, which I don't have anymore because now each job has its own credentials selection.

Is there any way to pass data between jobs and axis? I was expecting the map to have the env variables set elsewhere. Unless I'm doing it wrong, nothing but system envs are already in there.

Gavin

Robert Sandell

unread,
Dec 21, 2015, 5:02:50 AM12/21/15
to jenkin...@googlegroups.com
Well, before each matrix run rebuild(MatrixBuildExecution context) is called so you could get it there.

On the configuration screen you should always have the stapler ancestors available as well.

/B

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/51d78cdf-92fa-42f4-8e11-e4c0e9e77cd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees Inc.

Gavin Mogan

unread,
Dec 22, 2015, 5:53:34 PM12/22/15
to jenkin...@googlegroups.com
Took me a while to figure out what you meant, but I totally got access to project from rebuild now.

Thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/jZyGko_3oHI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS3NQdj-u2fqey%2BLjkc6wWhCauUsnaAO67VwNXGNp55jxA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages