Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #12 from jglick/Snippetizer-JENKINS-31831
[FIXED JENKINS-31831] Make Snippetizer UI be displayed in a top-level page
- Loading branch information
Showing
16 changed files
with
277 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 2 additions & 27 deletions
29
src/main/resources/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition/help-script.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,4 @@ | ||
<p> | ||
Groovy script defining this Pipeline. A quick example: | ||
</p> | ||
<pre>node { | ||
sh 'echo hello world' | ||
}</pre> | ||
<p> | ||
You can write any <a href="http://groovy-lang.org/learn.html" target="_blank">Groovy code</a> you need, using Java API calls plus the GDK. | ||
You can also call <a href="http://javadoc.jenkins-ci.org/" target="_blank">Jenkins APIs</a> and APIs in Jenkins plugins. | ||
(If <b>Use Groovy Sandbox</b> is checked, or you are not an administrator, not all APIs will be available.) | ||
</p> | ||
<p> | ||
There are many special build steps available, like <code>node</code> and <code>sh</code> in the example. | ||
Use the <b>Snippet Generator</b> to see them all and see how they should be configured. | ||
Step parameters are given as key-value pairs; if there is just one mandatory parameter the name may be omitted, so | ||
</p> | ||
<pre>stage 'Build'</pre> | ||
<p> | ||
is a shortcut for | ||
</p> | ||
<pre>stage name: 'Build'</pre> | ||
<p> | ||
but if you specify multiple parameters they must all be named: | ||
</p> | ||
<pre>stage name: 'Build', concurrency: 1</pre> | ||
<p> | ||
There are also some predefined variables. | ||
Use the <b>Snippet Generator</b> to see them all with usage information. | ||
Groovy script defining this Pipeline. | ||
Use the <b>Pipeline Groovy</b> link for details. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslHelp.groovy
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslReference.groovy
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/help.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.