<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I tried jenkins and zanata_plugin, but found <span style="color: rgb(51, 51, 51); font-size: 13px; orphans: 2; white-space: pre-wrap; widows: 2;" class="">exception.(</span>I uploaded HTML file as source document, and i want download HTML file.<span style="color: rgb(51, 51, 51); font-size: 13px; orphans: 2; white-space: pre-wrap; widows: 2;" class="">)</span></div>
<div class="">
<div style="orphans: 2; widows: 2;" class=""><font color="#333333" size="2" class=""><span style="white-space: pre-wrap;" class=""><br class="">
</span></font></div>
<div style="orphans: 2; widows: 2;" class=""><font color="#333333" size="2" class=""><span style="white-space: pre-wrap;" class="">The message is :</span></font></div>
<div style="orphans: 2; widows: 2;" class=""><font color="#333333" size="2" class=""><span style="white-space: pre-wrap;" class=""><br class="">
</span></font></div>
<div style="orphans: 2; widows: 2;" class="">
<pre class="console-output" style="box-sizing: border-box; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 13px; font-variant-ligatures: normal;"><span style="color: rgb(51, 51, 51);" class="">Job config: ZanataSyncStep{zanataURL=, credentialsId=163dfc8c-d81f-4e37-9758-3389e62d6aa5, zanataUsername=linsheng, zanataSecret=29*9, syncOption=source, zanataLocaleIds=, zanataProjectConfigs=}
Dec 14, 2017 8:37:21 AM org.zanata.client.commands.OptionsUtil readProjectConfigFile
INFO: Loading project config from /var/jenkins_home/workspace/zanata_test/zanata.xml
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Server: <a href="https://translate.zanata.org/" style="box-sizing: border-box; word-wrap: break-word; color: rgb(92, 53, 102);" class="">https://translate.zanata.org/</a>
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Project: xxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Version: v1
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Username: xxxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Project type: file
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Enable modules: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Using ETag cache: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Purging ETag cache beforehand: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Locales to pull: [zh-Hans-CN]
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Encode tab as \t: true
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Current directory: /
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Pulling target documents (translations) only
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Target-language base directory (translations): /var/jenkins_home/workspace/zanata_test/.
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Minimum accepted translation percentage (message based): 0%
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pull.PullCommand logOptions
INFO: Create skeletons for untranslated messages/files: false
ERROR: Build step failed with exception
java.lang.RuntimeException:</span><font color="#ff2600" class=""> unknown project type: file</font><font color="#333333" class="">
        at org.zanata.client.commands.pull.PullCommand.createStrategy(PullCommand.java:76)
        at org.zanata.client.commands.pull.PullCommand.run(PullCommand.java:151)
        at org.jenkinsci.plugins.zanata.cli.service.impl.PullServiceImpl.pullFromZanata(PullServiceImpl.java:38)
Caused: org.jenkinsci.plugins.zanata.exception.ZanataSyncException: failed pulling from zanata
        at org.jenkinsci.plugins.zanata.cli.service.impl.PullServiceImpl.pullFromZanata(PullServiceImpl.java:40)
        at org.jenkinsci.plugins.zanata.cli.service.impl.ZanataSyncServiceImpl.pullIfProjectIdMatchesConfig(ZanataSyncServiceImpl.java:234)
        at org.jenkinsci.plugins.zanata.cli.service.impl.ZanataSyncServiceImpl.pullFromZanata(ZanataSyncServiceImpl.java:212)
        at org.jenkinsci.plugins.zanata.zanatareposync.ZanataSyncStep$1.invoke(ZanataSyncStep.java:263)
        at org.jenkinsci.plugins.zanata.zanatareposync.ZanataSyncStep$1.invoke(ZanataSyncStep.java:255)
        at hudson.FilePath.act(FilePath.java:998)
        at hudson.FilePath.act(FilePath.java:976)
        at org.jenkinsci.plugins.zanata.zanatareposync.ZanataSyncStep.pullFromZanata(ZanataSyncStep.java:255)
        at org.jenkinsci.plugins.zanata.zanatareposync.ZanataSyncStep.perform(ZanataSyncStep.java:218)
        at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
        at hudson.model.Build$BuildExecution.build(Build.java:206)
        at hudson.model.Build$BuildExecution.doRun(Build.java:163)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:496)
        at hudson.model.Run.execute(Run.java:1737)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:419)
Build step 'Zanata Sync' marked build as failure
Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur.
Finished: FAILURE</font></pre>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">My Zanata config is:</div>
<div class=""><img apple-inline="yes" id="542DC29C-180A-4BD1-91CA-06956AA07D1D" src="cid:3B7A733B-DFAA-4758-9573-C254806A1D4B" class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">When i set the "Project Type” as “Gettext”, there was no exception.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<div>
<blockquote type="cite" class="">
<div class="">在 2017年12月12日,下午3:55,Sean Flanigan <<a href="mailto:sflaniga@redhat.com" class="">sflaniga@redhat.com</a>> 写道:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div style="font-size:12.8px" class="">Zanata doesn't integrate directly with GitHub, but we have a plugin for Jenkins which can synchronise between Zanata and a git repository, including GitHub. </div>
<div style="font-size:12.8px" class="">  <a href="https://wiki.jenkins.io/display/JENKINS/Zanata+Plugin" target="_blank" class="">https://wiki.jenkins.io/<wbr class="">display/JENKINS/<span class="gmail-il">Zanata</span>+Plugin</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Alternatively you can look at Zanata's CLI (push and pull commands):</div>
<div class="">  <a href="http://docs.zanata.org/en/release/client/" class="">http://docs.zanata.org/en/release/client/</a></div>
<div class=""><br class="">
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 12 December 2017 at 17:13, 于林生 <span dir="ltr" class="">
<<a href="mailto:yls@chainnova.com" target="_blank" class="">yls@chainnova.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space" class=""><span style="font-size:14px" class="">Hi,</span>
<div class=""><span style="font-size:14px" class=""><br class="">
</span></div>
<div class="">
<div class=""><span style="font-size:14px" class="">Currently I want to translate some documents using Zanata, and use GitHub Pages to show translations.</span></div>
</div>
<div class=""><span style="font-size:14px" class=""><br class="">
</span></div>
<div class=""><span style="font-size:14px" class="">But I do not know how to display the translation on Zanata as GitHub Pages automatically rather than manually.</span></div>
<div class=""><span style="font-size:14px" class=""><br class="">
</span></div>
<div class=""><span style="font-size:14px" class="">If you can not do it automatically, what is the easiest and fastest way?</span></div>
<div class=""><span style="font-size:14px" class=""><br class="">
</span></div>
<div class=""><span style="font-size:14px" class="">
<div class="">That is to say, how to sync github repository documents to Zanata original, how to sync Zanata translation to github repository.</div>
</span></div>
<div class=""><span style="font-size:14px" class=""><br class="">
</span></div>
<div class=""><span style="font-size:14px" class="">Please help me.</span></div>
</div>
<br class="">
______________________________<wbr class="">_________________<br class="">
zanata-users mailing list<br class="">
<a href="mailto:zanata-users@redhat.com" class="">zanata-users@redhat.com</a><br class="">
<a href="https://www.redhat.com/mailman/listinfo/zanata-users" rel="noreferrer" target="_blank" class="">https://www.redhat.com/<wbr class="">mailman/listinfo/zanata-users</a><br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">Sean Flanigan<br class="">
<br class="">
Principal Software Engineer<br class="">
Globalisation Tools Engineering<br class="">
Red Hat</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>