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

Enforce existence of src/main/resources/index.jelly #302

Merged
merged 1 commit into from Mar 21, 2022

Conversation

jglick
Copy link
Member

@jglick jglick commented Mar 4, 2022

@basil basil merged commit 90cdacd into jenkinsci:master Mar 21, 2022
@jglick jglick deleted the require-index branch March 22, 2022 00:27
@basil
Copy link
Member

basil commented Mar 31, 2022

Only 4 of the 23 plugins I maintain needed changes. Not bad!

@@ -133,6 +134,14 @@ private void performPackaging()
archiver.setArchiver(jarArchiver);
archiver.setOutputFile(jarFile);
jarArchiver.addConfiguredManifest(manifest);
File indexJelly = new File(getClassesDirectory(), "index.jelly");
if (!indexJelly.isFile()) {
throw new MojoFailureException("Missing " + indexJelly + ". Delete any <description> from pom.xml and create src/main/resources/index.jelly:\n" +
Copy link
Member

Choose a reason for hiding this comment

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

Why do we want to delete the description from the pom? It makes sense to have a description in the pom as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

You do not have to delete <description>; it would just be redundant and so there is a chance someone would try to make some text edits expecting them to appear in the product and be confused when they do not.

@zbynek
Copy link

zbynek commented Apr 19, 2022

For the record there are 10 plugins affected https://issues.jenkins.io/browse/JENKINS-68300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants