<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="">
<font size="4" class="">Can anyone help me?</font><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">在 2017年12月14日,下午7:27,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="">Hi Patrick,
<div class=""><br class="">
</div>
<div class="">Do you know what's going on here?</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 14 December 2017 at 20:02, 于林生 <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="">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;white-space:pre-wrap" 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;white-space:pre-wrap" class="">)</span></div>
<div class="">
<div class=""><font color="#333333" size="2" class=""><span style="white-space:pre-wrap" class=""><br class="">
</span></font></div>
<div class=""><font color="#333333" size="2" class=""><span style="white-space:pre-wrap" class="">The message is :</span></font></div>
<div class=""><font color="#333333" size="2" class=""><span style="white-space:pre-wrap" class=""><br class="">
</span></font></div>
<div class="">
<pre class="m_-6297404051626568108console-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-<wbr class="">4e37-9758-3389e62d6aa5, zanataUsername=linsheng, zanataSecret=29*9, syncOption=source, zanataLocaleIds=, zanataProjectConfigs=}
Dec 14, 2017 8:37:21 AM org.zanata.client.commands.<wbr class="">OptionsUtil readProjectConfigFile
INFO: Loading project config from /var/jenkins_home/workspace/<wbr class="">zanata_test/zanata.xml
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">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)" target="_blank" class="">https://translate.zanata.org/</a>
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Project: xxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Version: v1
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Username: xxxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Project type: file
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Enable modules: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Using ETag cache: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Purging ETag cache beforehand: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Locales to pull: [zh-Hans-CN]
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Encode tab as \t: true
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Current directory: /
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Pulling target documents (translations) only
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Target-language base directory (translations): /var/jenkins_home/workspace/<wbr class="">zanata_test/.
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">pull.PullCommand logOptions
INFO: Minimum accepted translation percentage (message based): 0%
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr class="">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.<wbr class="">pull.PullCommand.<wbr class="">createStrategy(PullCommand.<wbr class="">java:76)
        at org.zanata.client.commands.<wbr class="">pull.PullCommand.run(<wbr class="">PullCommand.java:151)
        at org.jenkinsci.plugins.zanata.<wbr class="">cli.service.impl.<wbr class="">PullServiceImpl.<wbr class="">pullFromZanata(<wbr class="">PullServiceImpl.java:38)
Caused: org.jenkinsci.plugins.zanata.<wbr class="">exception.ZanataSyncException: failed pulling from zanata
        at org.jenkinsci.plugins.zanata.<wbr class="">cli.service.impl.<wbr class="">PullServiceImpl.<wbr class="">pullFromZanata(<wbr class="">PullServiceImpl.java:40)
        at org.jenkinsci.plugins.zanata.<wbr class="">cli.service.impl.<wbr class="">ZanataSyncServiceImpl.<wbr class="">pullIfProjectIdMatchesConfig(<wbr class="">ZanataSyncServiceImpl.java:<wbr class="">234)
        at org.jenkinsci.plugins.zanata.<wbr class="">cli.service.impl.<wbr class="">ZanataSyncServiceImpl.<wbr class="">pullFromZanata(<wbr class="">ZanataSyncServiceImpl.java:<wbr class="">212)
        at org.jenkinsci.plugins.zanata.<wbr class="">zanatareposync.ZanataSyncStep$<wbr class="">1.invoke(ZanataSyncStep.java:<wbr class="">263)
        at org.jenkinsci.plugins.zanata.<wbr class="">zanatareposync.ZanataSyncStep$<wbr class="">1.invoke(ZanataSyncStep.java:<wbr class="">255)
        at hudson.FilePath.act(FilePath.<wbr class="">java:998)
        at hudson.FilePath.act(FilePath.<wbr class="">java:976)
        at org.jenkinsci.plugins.zanata.<wbr class="">zanatareposync.ZanataSyncStep.<wbr class="">pullFromZanata(ZanataSyncStep.<wbr class="">java:255)
        at org.jenkinsci.plugins.zanata.<wbr class="">zanatareposync.ZanataSyncStep.<wbr class="">perform(ZanataSyncStep.java:<wbr class="">218)
        at hudson.tasks.<wbr class="">BuildStepCompatibilityLayer.<wbr class="">perform(<wbr class="">BuildStepCompatibilityLayer.<wbr class="">java:81)
        at hudson.tasks.BuildStepMonitor$<wbr class="">1.perform(BuildStepMonitor.<wbr class="">java:20)
        at hudson.model.AbstractBuild$<wbr class="">AbstractBuildExecution.<wbr class="">perform(AbstractBuild.java:<wbr class="">736)
        at hudson.model.Build$<wbr class="">BuildExecution.build(Build.<wbr class="">java:206)
        at hudson.model.Build$<wbr class="">BuildExecution.doRun(Build.<wbr class="">java:163)
        at hudson.model.AbstractBuild$<wbr class="">AbstractBuildExecution.run(<wbr class="">AbstractBuild.java:496)
        at hudson.model.Run.execute(Run.<wbr class="">java:1737)
        at hudson.model.FreeStyleBuild.<wbr class="">run(FreeStyleBuild.java:43)
        at hudson.model.<wbr class="">ResourceController.execute(<wbr class="">ResourceController.java:97)
        at hudson.model.Executor.run(<wbr class="">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=""><span id="cid:3B7A733B-DFAA-4758-9573-C254806A1D4B"><PastedGraphic-2.png></span></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 class="">
<blockquote type="cite" class=""><span class="">
<div class="">在 2017年12月12日,下午3:55,Sean Flanigan <<a href="mailto:sflaniga@redhat.com" target="_blank" class="">sflaniga@redhat.com</a>> 写道:</div>
<br class="m_-6297404051626568108Apple-interchange-newline">
</span>
<div class="">
<div class="h5">
<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/disp<wbr class="">lay/JENKINS/<span class="m_-6297404051626568108gmail-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/" target="_blank" class="">http://docs.zanata.org/en/<wbr class="">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" target="_blank" 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/mailman<wbr class="">/listinfo/zanata-users</a><br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div class="m_-6297404051626568108gmail_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>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</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="">
</body>
</html>