<div dir="ltr">Hi Patrick,<div><br></div><div>Do you know what's going on here?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 December 2017 at 20:02, 于林生 <span dir="ltr"><<a href="mailto:yls@chainnova.com" target="_blank">yls@chainnova.com</a>></span> wrote:<br><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">
Hi,
<div><br>
</div>
<div><br>
</div>
<div>I tried jenkins and zanata_plugin, but found <span style="color:rgb(51,51,51);font-size:13px;white-space:pre-wrap">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">)</span></div>
<div>
<div><font color="#333333" size="2"><span style="white-space:pre-wrap"><br>
</span></font></div>
<div><font color="#333333" size="2"><span style="white-space:pre-wrap">The message is :</span></font></div>
<div><font color="#333333" size="2"><span style="white-space:pre-wrap"><br>
</span></font></div>
<div>
<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)">Job config: ZanataSyncStep{zanataURL=, credentialsId=163dfc8c-d81f-<wbr>4e37-9758-3389e62d6aa5, zanataUsername=linsheng, zanataSecret=29*9, syncOption=source, zanataLocaleIds=, zanataProjectConfigs=}
Dec 14, 2017 8:37:21 AM org.zanata.client.commands.<wbr>OptionsUtil readProjectConfigFile
INFO: Loading project config from /var/jenkins_home/workspace/<wbr>zanata_test/zanata.xml
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>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">https://translate.zanata.org/</a>
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Project: xxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Version: v1
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Username: xxxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Project type: file
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Enable modules: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Using ETag cache: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Purging ETag cache beforehand: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Locales to pull: [zh-Hans-CN]
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Encode tab as \t: true
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Current directory: /
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Pulling target documents (translations) only
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Target-language base directory (translations): /var/jenkins_home/workspace/<wbr>zanata_test/.
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Minimum accepted translation percentage (message based): 0%
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.<wbr>pull.PullCommand logOptions
INFO: Create skeletons for untranslated messages/files: false
ERROR: Build step failed with exception
java.lang.RuntimeException:</span><font color="#ff2600"> unknown project type: file</font><font color="#333333">
        at org.zanata.client.commands.<wbr>pull.PullCommand.<wbr>createStrategy(PullCommand.<wbr>java:76)
        at org.zanata.client.commands.<wbr>pull.PullCommand.run(<wbr>PullCommand.java:151)
        at org.jenkinsci.plugins.zanata.<wbr>cli.service.impl.<wbr>PullServiceImpl.<wbr>pullFromZanata(<wbr>PullServiceImpl.java:38)
Caused: org.jenkinsci.plugins.zanata.<wbr>exception.ZanataSyncException: failed pulling from zanata
        at org.jenkinsci.plugins.zanata.<wbr>cli.service.impl.<wbr>PullServiceImpl.<wbr>pullFromZanata(<wbr>PullServiceImpl.java:40)
        at org.jenkinsci.plugins.zanata.<wbr>cli.service.impl.<wbr>ZanataSyncServiceImpl.<wbr>pullIfProjectIdMatchesConfig(<wbr>ZanataSyncServiceImpl.java:<wbr>234)
        at org.jenkinsci.plugins.zanata.<wbr>cli.service.impl.<wbr>ZanataSyncServiceImpl.<wbr>pullFromZanata(<wbr>ZanataSyncServiceImpl.java:<wbr>212)
        at org.jenkinsci.plugins.zanata.<wbr>zanatareposync.ZanataSyncStep$<wbr>1.invoke(ZanataSyncStep.java:<wbr>263)
        at org.jenkinsci.plugins.zanata.<wbr>zanatareposync.ZanataSyncStep$<wbr>1.invoke(ZanataSyncStep.java:<wbr>255)
        at hudson.FilePath.act(FilePath.<wbr>java:998)
        at hudson.FilePath.act(FilePath.<wbr>java:976)
        at org.jenkinsci.plugins.zanata.<wbr>zanatareposync.ZanataSyncStep.<wbr>pullFromZanata(ZanataSyncStep.<wbr>java:255)
        at org.jenkinsci.plugins.zanata.<wbr>zanatareposync.ZanataSyncStep.<wbr>perform(ZanataSyncStep.java:<wbr>218)
        at hudson.tasks.<wbr>BuildStepCompatibilityLayer.<wbr>perform(<wbr>BuildStepCompatibilityLayer.<wbr>java:81)
        at hudson.tasks.BuildStepMonitor$<wbr>1.perform(BuildStepMonitor.<wbr>java:20)
        at hudson.model.AbstractBuild$<wbr>AbstractBuildExecution.<wbr>perform(AbstractBuild.java:<wbr>736)
        at hudson.model.Build$<wbr>BuildExecution.build(Build.<wbr>java:206)
        at hudson.model.Build$<wbr>BuildExecution.doRun(Build.<wbr>java:163)
        at hudson.model.AbstractBuild$<wbr>AbstractBuildExecution.run(<wbr>AbstractBuild.java:496)
        at hudson.model.Run.execute(Run.<wbr>java:1737)
        at hudson.model.FreeStyleBuild.<wbr>run(FreeStyleBuild.java:43)
        at hudson.model.<wbr>ResourceController.execute(<wbr>ResourceController.java:97)
        at hudson.model.Executor.run(<wbr>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><br>
</div>
<div><br>
</div>
<div>My Zanata config is:</div>
<div><img id="m_-6297404051626568108542DC29C-180A-4BD1-91CA-06956AA07D1D" src="cid:3B7A733B-DFAA-4758-9573-C254806A1D4B"></div>
<div><br>
</div>
<div><br>
</div>
<div>When i set the "Project Type” as “Gettext”, there was no exception.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div>
<blockquote type="cite"><span class="">
<div>在 2017年12月12日,下午3:55,Sean Flanigan <<a href="mailto:sflaniga@redhat.com" target="_blank">sflaniga@redhat.com</a>> 写道:</div>
<br class="m_-6297404051626568108Apple-interchange-newline">
</span><div><div class="h5"><div>
<div dir="ltr">
<div style="font-size:12.8px">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">  <a href="https://wiki.jenkins.io/display/JENKINS/Zanata+Plugin" target="_blank">https://wiki.jenkins.io/disp<wbr>lay/JENKINS/<span class="m_-6297404051626568108gmail-il">Zanata</span>+Plugin</a><br>
</div>
<div><br>
</div>
<div>Alternatively you can look at Zanata's CLI (push and pull commands):</div>
<div>  <a href="http://docs.zanata.org/en/release/client/" target="_blank">http://docs.zanata.org/en/<wbr>release/client/</a></div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 12 December 2017 at 17:13, 于林生 <span dir="ltr">
<<a href="mailto:yls@chainnova.com" target="_blank">yls@chainnova.com</a>></span> wrote:<br>
<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"><span style="font-size:14px">Hi,</span>
<div><span style="font-size:14px"><br>
</span></div>
<div>
<div><span style="font-size:14px">Currently I want to translate some documents using Zanata, and use GitHub Pages to show translations.</span></div>
</div>
<div><span style="font-size:14px"><br>
</span></div>
<div><span style="font-size:14px">But I do not know how to display the translation on Zanata as GitHub Pages automatically rather than manually.</span></div>
<div><span style="font-size:14px"><br>
</span></div>
<div><span style="font-size:14px">If you can not do it automatically, what is the easiest and fastest way?</span></div>
<div><span style="font-size:14px"><br>
</span></div>
<div><span style="font-size:14px">
<div>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><span style="font-size:14px"><br>
</span></div>
<div><span style="font-size:14px">Please help me.</span></div>
</div>
<br>
______________________________<wbr>_________________<br>
zanata-users mailing list<br>
<a href="mailto:zanata-users@redhat.com" target="_blank">zanata-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/zanata-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/zanata-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-6297404051626568108gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">Sean Flanigan<br>
<br>
Principal Software Engineer<br>
Globalisation Tools Engineering<br>
Red Hat</div>
</div>
</div>
</div>
</div>
</div>
</div></div></blockquote>
</div>
<br>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sean Flanigan<br><br>Principal Software Engineer<br>Globalisation Tools Engineering<br>Red Hat</div></div></div></div>
</div>