-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jglick/text
Various text edits for docs
- Loading branch information
Showing
6 changed files
with
45 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?jelly escape-by-default='true'?> | ||
<div> | ||
TODO | ||
Provides an alternative set of file parameters that work with Pipeline, unlike the type built into Jenkins core. | ||
</div> |
24 changes: 21 additions & 3 deletions
24
...main/resources/io/jenkins/plugins/file_parameters/Base64FileParameterDefinition/help.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,3 +1,21 @@ | ||
<div> | ||
<p>File parameter compatible with Pipeline, must be used with small files</p> | ||
</div> | ||
<p> | ||
Simple file parameter compatible with Pipeline. | ||
Transmits file contents as an environment variable in Base64 encoding, | ||
so it is best used with fairly small files. | ||
Example usage from Declarative Pipeline: | ||
</p> | ||
<pre> | ||
pipeline { | ||
agent any | ||
parameters { | ||
base64File(name: 'FILE') | ||
} | ||
stages { | ||
stage('Example') { | ||
steps { | ||
sh 'echo $FILE | base64 -d > config.yaml' | ||
} | ||
} | ||
} | ||
} | ||
</pre> |
3 changes: 2 additions & 1 deletion
3
...n/resources/io/jenkins/plugins/file_parameters/FileParameterWrapper/help-allowNoFile.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,3 +1,4 @@ | ||
<div> | ||
Per default, there will be an error if there is no parameter. You can avoid failure by allowing no file. | ||
By default, an error will be thrown if there is no file uploaded to the build. | ||
With this option, the build will proceed, and the environment variable will simply not be defined. | ||
</div> |
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
16 changes: 9 additions & 7 deletions
16
...ain/resources/io/jenkins/plugins/file_parameters/StashedFileParameterDefinition/help.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,19 +1,21 @@ | ||
<div> | ||
<p>File parameter compatible with Pipeline but this one stash the file and must be used to handle bug files, how to use it in a declarative pipeline:</p> | ||
<pre> | ||
<p> | ||
File parameter compatible with Pipeline but using the stash system, better suited to large files. | ||
The file will be saved to a stash named like the parameter containing one entry, also named like the parameter. | ||
Example usage from Declarative Pipeline: | ||
</p> | ||
<pre> | ||
pipeline { | ||
agent any | ||
parameters { | ||
stashedFile(name: 'FILE-STASH') | ||
stashedFile(name: 'assets.zip') | ||
} | ||
stages { | ||
stage('Example') { | ||
steps { | ||
unstash "FILE-STASH" | ||
sh 'cat FILE-STASH' | ||
unstash 'assets.zip' | ||
sh 'unzip assets.zip' | ||
} | ||
} | ||
} | ||
} | ||
</pre> | ||
</div> |