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

More fixes to mojos that assumed that plugin artifacts used a short name identical to the artifactId #48

Merged
merged 2 commits into from
Feb 27, 2017

Conversation

jglick
Copy link
Member

@jglick jglick commented Dec 21, 2016

Follows up #46.

@reviewbybees

@ghost
Copy link

ghost commented Dec 21, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

jglick added a commit to jglick/workflow-job-plugin that referenced this pull request Dec 21, 2016
Unfortunately it is also necessary to <exclude> the official dependency GAs to avoid duplication,
which seems like a fundamental limitation of jitpack.io as applied to Maven.
File dst = new File(testDir, a.getArtifactId() + ".hpi");
String artifactId = a.getActualArtifactId();
if (artifactId == null) {
getLog().debug("Skipping " + artifactId + " with classifier " + a.getClassifier());
Copy link
Member Author

Choose a reason for hiding this comment

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

e.g., -tests

continue;
}

getLog().debug("Copying " + artifactId + " as a test dependency");
Copy link
Member Author

@jglick jglick Dec 21, 2016

Choose a reason for hiding this comment

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

Would also be useful to fail the build is an attempt is made to copy the same plugin twice. I think this could be reproduced in the test by, e.g., adding a test-scoped dependency on mercurial, which then pulls in a transitive dependency on some earlier version of scm-api, without excludeing it as per jitpack/jitpack.io#1029.

@jglick jglick merged commit b3052ae into jenkinsci:master Feb 27, 2017
@jglick jglick deleted the getActualArtifactId branch February 27, 2017 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants