I got this working recently with the Aries website. I just ran ‘git branch 
asf-site’ and pushed and then my script worked. I run this from a Jenkins 
pipeline in the equivalent of tomee-site-generator ( if I remember the tomee 
repo name correctly).

There’s only one Aries pipeline so it should be easy to find if you want to 
take a look.

David jencks.

Sent from my iPhone

> On May 19, 2021, at 6:03 PM, David Blevins <david.blev...@gmail.com> wrote:
> 
> I've been trying to setup automatic website publishing.
> 
> So far I have a test Jenkins job that does a simple commit/push:
> 
> - https://ci-builds.apache.org/job/Tomee/job/site-publish
> 
> At the moment it's just a simple Freestyle job with a test script to see a 
> successful commit/push work:
> 
>    git clone https://gitbox.apache.org/repos/asf/tomee-site-pub.git -b 
> asf-staging-test
>    cd tomee-site-pub
>    date > test.txt
>    git add test.txt
>    git commit -m "test publish from ci-builds.apache.org" test.txt
>    git push origin asf-staging-test
> 
> The trick and where I'm stuck is that we're using `master` as our main branch 
> for https://tomee.apache.org and Jenkins is setup to only let us push a 
> branch called `asf-site` or `asf-staging-*`
> 
> I've attempted to switch `tomee-site-pub` from `master` to `asf-site`, but it 
> doesn't seem to work.  I've filed a ticket with Infra and will keep you 
> updated:
> 
> - https://issues.apache.org/jira/browse/INFRA-21903
> 
> 
> -- 
> David Blevins
> http://twitter.com/dblevins
> http://www.tomitribe.com
> 

Reply via email to