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-65287] Add an online missing help #48
[JENKINS-65287] Add an online missing help #48
Conversation
Thanks @Onyimatics and congratulations on submitting the first pull request from the SheCodeAfrica Contributhon. I think that the help for the SCM step is better covered by the existing help that is stored in a "jelly" file. To learn more about how jelly files are used in Jenkins, refer to Jelly form controls. I believe that one of the two changes is being replaced by the jelly file and the other is appearing but the help from the jelly file is the better choice in that location. Could you follow that same pattern and add a help file for the polling and changelog checkboxes? I believe that the file names for the help are derived from the names of the variables in Jenkins. |
@Onyimatics the idea I suggested to add online help for the "Include in polling?" item is available at MarkEWaite@c1f434a . I'm not 100% confident on the phrasing, but it matches with the variable name A similar file would need to be added for |
Thanks @MarkEWaite for your feedback. I'm really happy I successfully raised a PR. This is the view from my end which showed me a help icon for And this is how it looks like on the Snippet Generator Reference Page. However, I've taken your feedback, I will go ahead and discard the changes, and create the polling and changelog checkboxes using jelly file like you said. Thanks so much. |
Alright @MarkEWaite |
Thanks for the comparison screenshot. I'm not sure what's different between your version and mine. I'm running the Google Chrome browser on Linux with Jenkins 2.277.1. As far as I can tell, you're running Jenkins 2.277.1 as well. I assume you're using macOS and Safari. |
I'm actually using macOS and Google Chrome Browser. |
@@ -0,0 +1,3 @@ | |||
<div> | |||
This is a special step that will checkout using the configuration options offered by any Pipeline-compatible SCM plugin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a special step that will checkout using the configuration options offered by any Pipeline-compatible SCM plugin. | |
This is a special step that checks out the code using the configuration options offered by any Pipeline-compatible SCM plugin. |
We prefer present tense to future in a case like this.
The proper verb for is "check out" rather than "checkout" and it needs an object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, @StackScribe that's well noted.
Thanks for the correction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Onyimatics you can use the "Commit suggestion" to apply changes that others have suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarkEWaite Thanks, well noted.
Does this existing help file not show up in the UI anywhere? Maybe a bug with how |
That help file is visible in the user interface. It is one of the '?' icons in the two that are shown in my screenshot. |
03eb71d
to
61d73c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've confirmed that the text is displayed in Jenkins both from the snippet generator and from the steps reference inside Jenkins.
Needs corrections to the "Include in changelog" description, since it is different than the polling setting.
Thanks very much!
src/main/resources/org/jenkinsci/plugins/workflow/steps/scm/SCMStep/help-changelog.html
Outdated
Show resolved
Hide resolved
src/main/resources/org/jenkinsci/plugins/workflow/steps/scm/SCMStep/help-changelog.html
Outdated
Show resolved
Hide resolved
…MStep/help-changelog.html Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
…MStep/help-changelog.html Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Thanks a lot for the correction. |
Includes online help from @Onyimatics in pull request jenkinsci/workflow-scm-step-plugin#48
I've deployed a pre-release build in my test instance and verified it works as expected. |
Make sure you are opening from a topic/feature/bugfix branch (right side) and not your master branch!
Ensure that the pull request title represents the desired changelog entry
Please describe what you did
Created
help-changelog.html
file to add a description of the scm step argumentchangelog
Created
help-poll.html
file to add a description of the scm step argumentpoll
Link to relevant issues in GitHub or Jira
JENKINS-65287
@MarkEWaite @oleg-nenashev