Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-33578] DownstreamBuildSelector is not applicable to Workflow jobs. #84

Conversation

ikedam
Copy link
Member

@ikedam ikedam commented Apr 3, 2016

JENKINS-33578

Though the issue described in the ticket is fixed in #79, I found DownstreamBuildSelector is not applicable to Workflow jobs as it depends on AbstractBuild#getUpstreamRelationshipBuild.

This change show error or warnings messages to users when they tries to use DownstreamBuildSelector with Workflow.

downstream_with_workflow

@@ -90,6 +90,7 @@ public String getUpstreamBuildNumber() {
@Override
protected boolean isSelectable(Run<?, ?> run, EnvVars env) {
if (!(run instanceof AbstractBuild<?,?>)) {
// As this feature depends on `AbstractBuild#getUpstreamRelationshipBuild(AbstractProject<?,?>)`
LOGGER.warning(String.format("Only applicable to AbstractBuild: but is %s.", run.getClass().getName()));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can never be warned at the configuration time...

…for DownstreamBuildSelector. Workflow projects continue to be listed as allow to complete folder names.
@jenkinsadmin
Copy link
Member

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

@ikedam ikedam merged commit 12ec59c into jenkinsci:master Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants