<div dir="ltr">Hello Mr Yu,<div><br></div><div>For file type project, you will have to use scripting do the job in Jenkins. Please follow <a href="https://zanata-jenkins-plugin.readthedocs.io/en/latest/configuration/build-step/install-cli/" target="_blank">https://zanata-jenkins-<wbr>plugin.readthedocs.io/en/<wbr>latest/configuration/build-<wbr>step/install-cli/</a> to configure your Jenkins server. After you have done with "Individual Job Configuration", you can reference the zanata-cli tool in shell script (jenkins build step). Below is some snippet that you can reference:</div><div><br></div><div><div># alias to zanata-cli (installed by Jenkins)</div><div>z=$ZANATA_CLI_4_0_0_HOME/bin/zanata-cli</div></div><div><br></div><div># invoke zanata cli (Z_USERNAME and Z_API_KEY are from credential binding plugin) <br></div><div><div><br></div><div># push translatable source to Zanata</div><div>$z --batch-mode -e push --username $Z_USERNAME --key $Z_API_KEY --file-types "HTML"</div><div><br></div><div># pull translation </div><div>$z --batch-mode -e pull --username $Z_USERNAME --key $Z_API_KEY </div></div><div><br></div><div># after pull, you can optionally commit the translation files and push to github in post build step</div><div># git add .</div><div># git commit -m "translation"</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 18, 2017 at 12:12 PM, 于林生 <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">
<font size="4">Can anyone help me?</font><br>
<div><br>
<blockquote type="cite"><div><div class="h5">
<div>在 2017年12月14日,下午7:27,Sean Flanigan <<a href="mailto:sflaniga@redhat.com" target="_blank">sflaniga@redhat.com</a>> 写道:</div>
<br class="m_-4054035201126695195Apple-interchange-newline">
</div></div><div><div><div class="h5">
<div dir="ltr">Hi Patrick,
<div><br>
</div>
<div>Do you know what's going on here?</div>
</div>
</div></div><div class="gmail_extra"><br>
<div class="gmail_quote"><div><div class="h5">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>
</div></div><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"><div><div class="h5">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><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><div><div class="h5">
<pre class="m_-4054035201126695195m_-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-4e<wbr>37-9758-3389e62d6aa5, zanataUsername=linsheng, zanataSecret=29*9, syncOption=source, zanataLocaleIds=, zanataProjectConfigs=}
Dec 14, 2017 8:37:21 AM org.zanata.client.commands.Opt<wbr>ionsUtil readProjectConfigFile
INFO: Loading project config from /var/jenkins_home/workspace/za<wbr>nata_test/zanata.xml
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.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.pul<wbr>l.PullCommand logOptions
INFO: Project: xxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Version: v1
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Username: xxxxx
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Project type: file
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Enable modules: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Using ETag cache: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Purging ETag cache beforehand: false
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Locales to pull: [zh-Hans-CN]
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Encode tab as \t: true
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Current directory: /
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Pulling target documents (translations) only
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Target-language base directory (translations): /var/jenkins_home/workspace/za<wbr>nata_test/.
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.PullCommand logOptions
INFO: Minimum accepted translation percentage (message based): 0%
Dec 14, 2017 8:37:23 AM org.zanata.client.commands.pul<wbr>l.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.pul<wbr>l.PullCommand.createStrategy(<wbr>PullCommand.java:76)
        at org.zanata.client.commands.pul<wbr>l.PullCommand.run(PullCommand.<wbr>java:151)
        at org.jenkinsci.plugins.zanata.c<wbr>li.service.impl.PullServiceImp<wbr>l.pullFromZanata(PullServiceIm<wbr>pl.java:38)
Caused: org.jenkinsci.plugins.zanata.e<wbr>xception.ZanataSyncException: failed pulling from zanata
        at org.jenkinsci.plugins.zanata.c<wbr>li.service.impl.PullServiceImp<wbr>l.pullFromZanata(PullServiceIm<wbr>pl.java:40)
        at org.jenkinsci.plugins.zanata.c<wbr>li.service.impl.ZanataSyncServ<wbr>iceImpl.pullIfProjectIdMatches<wbr>Config(ZanataSyncServiceImpl.<wbr>java:234)
        at org.jenkinsci.plugins.zanata.c<wbr>li.service.impl.ZanataSyncServ<wbr>iceImpl.pullFromZanata(ZanataS<wbr>yncServiceImpl.java:212)
        at org.jenkinsci.plugins.zanata.z<wbr>anatareposync.ZanataSyncStep$1<wbr>.invoke(ZanataSyncStep.java:26<wbr>3)
        at org.jenkinsci.plugins.zanata.z<wbr>anatareposync.ZanataSyncStep$1<wbr>.invoke(ZanataSyncStep.java:25<wbr>5)
        at hudson.FilePath.act(FilePath.j<wbr>ava:998)
        at hudson.FilePath.act(FilePath.j<wbr>ava:976)
        at org.jenkinsci.plugins.zanata.z<wbr>anatareposync.ZanataSyncStep.p<wbr>ullFromZanata(ZanataSyncStep.j<wbr>ava:255)
        at org.jenkinsci.plugins.zanata.z<wbr>anatareposync.ZanataSyncStep.p<wbr>erform(ZanataSyncStep.java:218<wbr>)
        at hudson.tasks.BuildStepCompatib<wbr>ilityLayer.perform(BuildStepCo<wbr>mpatibilityLayer.java:81)
        at hudson.tasks.BuildStepMonitor$<wbr>1.perform(BuildStepMonitor.jav<wbr>a:20)
        at hudson.model.AbstractBuild$Abs<wbr>tractBuildExecution.perform(<wbr>AbstractBuild.java:736)
        at hudson.model.Build$BuildExecut<wbr>ion.build(Build.java:206)
        at hudson.model.Build$BuildExecut<wbr>ion.doRun(Build.java:163)
        at hudson.model.AbstractBuild$Abs<wbr>tractBuildExecution.run(Abstra<wbr>ctBuild.java:496)
        at hudson.model.Run.execute(Run.j<wbr>ava:1737)
        at <a href="http://hudson.model.FreeStyleBuild.ru">hudson.model.FreeStyleBuild.ru</a><wbr>n(FreeStyleBuild.java:43)
        at hudson.model.ResourceControlle<wbr>r.execute(ResourceController.<wbr>java:97)
        at hudson.model.Executor.run(Exec<wbr>utor.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></div><div><span id="m_-4054035201126695195cid:3B7A733B-DFAA-4758-9573-C254806A1D4B"><PastedGraphic-2.png></span></div><div><div class="h5">
<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></div><div><div class="h5">
<div>
<blockquote type="cite"><span>
<div>在 2017年12月12日,下午3:55,Sean Flanigan <<a href="mailto:sflaniga@redhat.com" target="_blank">sflaniga@redhat.com</a>> 写道:</div>
<br class="m_-4054035201126695195m_-6297404051626568108Apple-interchange-newline">
</span>
<div>
<div class="m_-4054035201126695195h5">
<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_-4054035201126695195m_-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/re<wbr>lease/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_-4054035201126695195m_-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></div>
</div>
</blockquote>
</div><div><div class="h5">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-4054035201126695195gmail_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>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Patrick Huang <br>Senior Software Engineer <br>Engineering - Internationalisation<br>Red Hat, Asia-Pacific Pty Ltd <br>Level 1, 193 North Quay <br>Brisbane 4000 <br>Office: +61 7 3514 8278 <br>Fax: +61 7 3514 8199 <br>IRC: pahuang<br>github: <a href="http://github.com/huangp" target="_blank">github.com/huangp</a><br>Website: <a href="http://www.redhat.com" target="_blank">www.redhat.com</a> <br></div></div>
</div>