Skip to content

Conversation

@daniel-beck
Copy link
Member

Currently, Core webapp resources such as /help/system-config/master-slave/usage.html do not work. This was an oversight in the previous PR. This change should address the problem.

@LinuxSuRen Please confirm.

@daniel-beck
Copy link
Member Author

The last commit fixes the URL like http://localhost:8080/plugin/credentials/help/domain/name.html

My apologies for getting this wrong, I have no idea how these slipped through.

</resource>
<resource>
<directory>plugins/credentials-plugin/src/main/webapp</directory>
<targetPath>webapp</targetPath>
Copy link
Member Author

Choose a reason for hiding this comment

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

So the interesting bit is, as currently proposed, plugin webapp/ resources would like in a subdirectory, while core webapp/ resources would not. This is due to #getPluginResource being exclusively used for plugin webapp resources, while #getResource is used for other resources as well.

@daniel-beck
Copy link
Member Author

Conflicted because the other PR was squash-merged, with a regular merge commit this would not have happened.

@LinuxSuRen
Copy link
Member

It might because I made some changes at #77

@LinuxSuRen
Copy link
Member

Let me fix this conflict.

Copy link
Member

@LinuxSuRen LinuxSuRen left a comment

Choose a reason for hiding this comment

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

LGTM

@daniel-beck
Copy link
Member Author

@LinuxSuRen

It might because I made some changes at #77

Git understand commit history and can easily merge without conflict — unless you use squash-merges or rebase-merges, as those will create different commits, and histories diverging so that the tool cannot automatically merge anymore.

@LinuxSuRen
Copy link
Member

Yes, I understand this. I just want to keep a clean commit log.

@LinuxSuRen LinuxSuRen merged commit db1a37c into jenkinsci:master May 10, 2019
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