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.
- Loading branch information
Patrick Huang
committed
Mar 24, 2017
1 parent
bbf4c22
commit 2a2ae3a
Showing
5 changed files
with
5 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,33 +34,6 @@ Under 'Build Environment' section: | |
|
||
### Use the installed CLI in build | ||
|
||
You can use it in two ways: | ||
|
||
1. Add a build step such as 'Execute shell' and invoke Zanata CLI in it (see [below example](/configuration/build-step/install-cli/#example-execute-shell-step-using-zanata-cli)) | ||
2. Choose another build step [Zanata Sync via CLI](/configuration/zanata-sync-via-cli/) | ||
|
||
##### Example: Execute shell step using Zanata CLI | ||
Assuming you follow the [above configuration](/images/job_installs_cli.png) and | ||
have chosen 'zanata_cli_4_0_0' and checked convert to uppercase, | ||
the shell script below will do zanata push and pull and then git | ||
commit: | ||
```bash | ||
Z=$ZANATA_CLI_4_0_0_HOME/bin/zanata-cli | ||
|
||
$Z -B push --file-types "PLAIN_TEXT[adoc]" --username $Z_U --key $Z_P | ||
|
||
$Z -B pull --username $Z_U --key $Z_P | ||
|
||
# only needed if .zanata-cache/ is not in your .gitignore | ||
rm -rf .zanata-cache/ | ||
|
||
git add . | ||
# only needed if you haven't configure this globally in your Jenkins | ||
git config user.name "Jenkins" | ||
git config user.email "[email protected]" | ||
|
||
git commit -m "$BUILD_URL did this" | ||
|
||
``` | ||
Choose another build step [Zanata Sync via CLI](/configuration/zanata-sync-via-cli/) | ||
|
||
__NOTE__: You still need to do normal git push in a [post build step](/configuration/post-build/) |
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,5 +1,4 @@ | ||
### Alternative build step | ||
####(experimental and subject to change without notice) | ||
### Alternative build step (still in development) | ||
|
||
From Yu Shao [email protected] | ||
|
||
|
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