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

Add help HTML for user-facing Describables #219

Merged
merged 2 commits into from
Nov 21, 2017

Conversation

abayer
Copy link
Member

@abayer abayer commented Nov 16, 2017

  • JENKINS issue(s):
    • n/a
  • Description:
    • This will help enable INFRA-1053 (auto-generation of help for Declarative directives, like the step documentation on jenkins.io).
    • Note that post conditions aren't included, because I regrettably didn't make them Describables. So they'll need to be handled specially in the doc generation. Ah well.
  • Documentation changes:
    • n/a
  • Users/aliases to notify:
    • @reviewbybees

This will help enable INFRA-1053 (auto-generation of help for
Declarative directives, like the step documentation on jenkins.io).
@abayer abayer added this to the 1.2.5 milestone Nov 16, 2017
@ghost
Copy link

ghost commented Nov 16, 2017

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.

@abayer
Copy link
Member Author

abayer commented Nov 16, 2017

@rtyler @bitwiseman I included you two because these are help docs that will eventually end up in the auto-generated docs on jenkins.io, so I wanted to make sure you read my probably crappy versions. =)

-->

<p>
If true, <code>docker pull ...</code> will always be run, even if the image tag is already present.
Copy link
Member

Choose a reason for hiding this comment

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

would probably be helpful to say why this is useful. E.g. the latest tag has moved.

-->

<p>
The job or stage will be run in a Docker container using an image built from the <code>Dockerfile</code>.
Copy link
Member

Choose a reason for hiding this comment

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

...built from a Dockerfile?

-->

<p>
If specified, this will be used as the custom workspace on the agent, underneath the workspace root on that agent.
Copy link
Member

Choose a reason for hiding this comment

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

This might need clarification. What does "underneath the workspace root " really mean for example.

Copy link
Member Author

Choose a reason for hiding this comment

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

I honestly can't think of a better way to put it. Will think on it.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe just an example would be enough?

-->

<p>
The label to use.
Copy link
Member

Choose a reason for hiding this comment

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

It is probably people that are new to Jenkins that will read these help files. So what is a label? Perhaps link to some chapter in the user docks somewhere?


<p>
The job will not run on any agent, requiring specifying agents on each stage. Note that this has no effect when
specified on a stage.
Copy link
Member

Choose a reason for hiding this comment

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

Does that mean if you specify agent none on a stage it will use one anyway?
Reading things out of context is fun :)

Copy link
Member Author

Choose a reason for hiding this comment

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

heh

-->

<p>
Execute the stage if the build's SCM changelog contains a given <code>java.util.regex.Pattern</code>, specified as
Copy link
Member

Choose a reason for hiding this comment

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

Link to https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html would make peoples life easier I think.

@abayer
Copy link
Member Author

abayer commented Nov 21, 2017

Merging this in so it can be in the 1.2.5 release - @rtyler and @bitwiseman, always happy to make changes/take PRs later.

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