forked from yu-shao-gm/zanata-jenkins-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
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 kathryngo/review-readthedocs
Review: readthedocs for zanata-plugin
- Loading branch information
Showing
5 changed files
with
39 additions
and
28 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,5 @@ | ||
### Alternative build step (experimental and subject to change without notice) | ||
### Alternative build step | ||
####(experimental and subject to change without notice) | ||
|
||
From Yu Shao [email protected] | ||
|
||
|
@@ -8,11 +9,12 @@ From Yu Shao [email protected] | |
- Go to 'Configure System' | ||
- Scroll down to find 'Zanata cli script template' | ||
|
||
There are two fields under 'Zanata cli script template', each of them contains a script template to use in your job. | ||
There are two fields under 'Zanata cli script template'. Each of them contains | ||
a script template to use in your job. | ||
|
||
##### Things to note | ||
|
||
The default script templates expect: | ||
The default script templates expect the following: | ||
|
||
- zanata username to be provided in an environment variable 'ZANATA_USERNAME', | ||
and zanata API key provided in environment variable 'ZANATA_APIKEY'. | ||
|
@@ -26,9 +28,14 @@ See [CLI installation](/configuration/build-step/install-cli/) for how to instal | |
- Select Zanata credentials from the dropdown and it will automatically expose ZANATA_USERNAME and ZANATA_APIKEY to environment variables | ||
- Fill in 'Extra PATH entries' with the installed Zanata CLI location (e.g. *cli_name*_HOME/bin) | ||
|
||
Configure the sync details, there are two sync actions in the plugin, one, pushing the English source file(s) to Zanata server defined in zanata.xml file in the source repo property directories. Two, committing the finished translation files from Zanata to the original Git repository. | ||
Configure the sync details using one of the two sync actions in the plugin. | ||
The first pushes the English source file(s) to the Zanata server defined in the | ||
zanata.xml file in the source repo property directories. The second involves | ||
committing the finished translation files from Zanata to the original Git repository. | ||
|
||
Both two types of sync are running the default shell scripts, you could customize the shell scripts, you could customize the two sync actions according to your build need by enabling or disabling them | ||
Both types of sync run the default shell scripts. You can customize the | ||
shell scripts and the two sync actions according to your build needs by | ||
enabling or disabling them. | ||
|
||
|
||
Example configuration: | ||
|
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