You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@apache.org by Alex Harui <ah...@adobe.com.INVALID> on 2018/01/20 07:37:16 UTC

Is Jekyll available from Jenkins?

I'm just learning about Jekyll and GH Pages.  We will be using GH Pages
but I don't see a way to have the equivalent of a staging server like we
do in Apache CMS.  So I thought about using Jenkins to call Jekyll to
build (but not serve) the site.  Then the last successful artifacts would
act as a staging server?

Or if there is a better way that's fine too.

Thanks,
-Alex



Re: Is Jekyll available from Jenkins?

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> I was wondering how you authorize the jenkins user to push to your
> asf-site branch.
> 
> IIUC the trick is to restrict the build job to only run on nodes
> having the git-websites label?

That is the case see the bottom of the page I posted. (Although Chris set this up and more importantly documented it so the credit is his).

Thanks,
Justin

Re: Is Jekyll available from Jenkins?

Posted by Lukasz Lenart <lu...@apache.org>.
2018-01-24 10:24 GMT+01:00 Bertrand Delacretaz <bd...@apache.org>:
> Hi Justin,
>
> On Wed, Jan 24, 2018 at 6:40 AM, Justin Mclean <ju...@classsoftware.com> wrote:
>> ...It’s using gitpubsub and we have jerkins auto building the site on any changes in git...
>
> I was wondering how you authorize the jenkins user to push to your
> asf-site branch.
>
> IIUC the trick is to restrict the build job to only run on nodes
> having the git-websites label?

Yes, using this label limits build to two nodes that are properly
configured to push changes to the asf-sire branch


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

Re: Is Jekyll available from Jenkins?

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Justin,

On Wed, Jan 24, 2018 at 6:40 AM, Justin Mclean <ju...@classsoftware.com> wrote:
> ...It’s using gitpubsub and we have jerkins auto building the site on any changes in git...

I was wondering how you authorize the jenkins user to push to your
asf-site branch.

IIUC the trick is to restrict the build job to only run on nodes
having the git-websites label?

-Bertrand

Re: Is Jekyll available from Jenkins?

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

As an alternative you can do what incubating PLC4X project  has done. [1] It use asciidoc and maven for building  the site and uses an ALv2 theme based on bootstrap. This way you can build locally and test and would be very easy to to set up a staging server. It’s using gitpubsub and we have jerkins auto building the site on any changes in git.

Even if you’re not interested in this I mention it just in case others find this thread as it may help them.

Thanks, 
Justin

1. http://plc4x.incubator.apache.org/developers/website.html <http://plc4x.incubator.apache.org/developers/website.html>

Re: Is Jekyll available from Jenkins?

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Chris,

I guess I wasn't clear enough in my original post.  But it will be nice to
have staging for royale.a.o.

So it sounds like some other projects are bringing down Jekyll on the fly,
assuming that RVM exists.  I would imagine that is on the Linux boxes.  Is
downloading Jekyll onto a builds slave an ok thing for us to try?

I have an external Windows CI server as well, although builds.a.o would be
a preferred place to stage our pages..  We have Jekyll running on the
external CI, but would like to use Github post commit hook to trigger
builds on each commit.  I've opened
https://issues.apache.org/jira/browse/INFRA-15884 for that.

Any opinion on whether a commit hook is possible and better than bringing
down Jekyll on the fly?

Thanks,
-Alex

On 1/23/18, 8:47 PM, "Chris Lambertus" <cm...@table2.com> wrote:

>This doesn't have anything to do with GitHub pages. This is for gitpubsub
>websites.
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Froyale.apa
>che.org%2Fstaging&data=02%7C01%7Caharui%40adobe.com%7Ced12952643d14b63e48b
>08d562e5b013%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365236609947020
>63&sdata=kR54mj%2FGCukaFiiYlsigZYRszYbs2%2F0Gu58PMkLY%2FuU%3D&reserved=0
>
>
>
>On Jan 23, 2018, 20:40, at 20:40, Alex Harui <ah...@adobe.com.INVALID>
>wrote:
>>Thanks Chris.  I think I am missing something.  The royale-docs master
>>branch shows up at:
>>
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.g
>>ithub.io%2Froyale-docs%2F&data=02%7C01%7Caharui%40adobe.com%7Ced12952643d
>>14b63e48b08d562e5b013%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636523
>>660994702063&sdata=cqy%2Bm6hOjKhmaMvBi5uZtkbIsVrqcNmdqQfohQlhlkc%3D&reser
>>ved=0
>>
>>What URL should I hit to see the develop branch?  I got a 404 when I
>>tried
>>
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.g
>>ithub.io%2Froyale-docs%2Fstaging%2F&data=02%7C01%7Caharui%40adobe.com%7Ce
>>d12952643d14b63e48b08d562e5b013%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>>0%7C636523660994702063&sdata=2YKM%2Fpinfe55GNmnVYywWTzYfvn9EQPD5Hm0ScZ0V8
>>w%3D&reserved=0
>>
>>Thanks,
>>-Alex
>>
>>
>>On 1/23/18, 5:05 PM, "Chris Lambertus" <cm...@apache.org> wrote:
>>
>>>Done.
>>>
>>>
>>>
>>>> On Jan 23, 2018, at 2:23 PM, Alex Harui <ah...@adobe.com.INVALID>
>>>>wrote:
>>>> 
>>>> OK.  We have a develop branch in the royale-docs.  Can you hook that
>>up
>>>>to
>>>> staging please?
>>>> 
>>>> Thanks,
>>>> -Alex
>>>> 
>>>> On 1/23/18, 2:19 PM, "Chris Lambertus" <cm...@apache.org> wrote:
>>>> 
>>>>> The branch name can be arbitrary, just not asf-site.
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Jan 23, 2018, at 2:18 PM, Alex Harui <ah...@adobe.com.INVALID>
>>>>>> wrote:
>>>>>> 
>>>>>> Thanks Chris.  I assume this works only if I create a branch
>>called
>>>>>> asf-site-staging?
>>>>>> 
>>>>>> -Alex
>>>>>> 
>>>>>> From: Chris Lambertus <cm...@apache.org>>
>>>>>> Reply-To: <bu...@apache.org>>
>>>>>> Date: Tuesday, January 23, 2018 at 2:09 PM
>>>>>> To: <bu...@apache.org>>
>>>>>> Subject: Re: Is Jekyll available from Jenkins?
>>>>>> 
>>>>>> There’s nothing really to learn, it operates the exact same way as
>>>>>> asf-site with gitpubsub. If you create a staging branch, and you
>>ask
>>>>>>us
>>>>>> to set up a staging URL, we can now do so. Currently this is
>>limited
>>>>>>to
>>>>>> deploying under your existing site in a /staging/ URL or similar,
>>but
>>>>>> we’re looking at ways to see if we can provide a foo.staging.a.o
>>type
>>>>>> URL as well.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Jan 22, 2018, at 11:08 PM, Alex Harui
>>>>>> <ah...@adobe.com.INVALID>> wrote:
>>>>>> 
>>>>>> Thanks Chris,  Where can I learn more about this?
>>>>>> 
>>>>>> -Alex
>>>>>> 
>>>>>> On 1/22/18, 10:06 PM, "Lukasz Lenart"
>>>>>> <lu...@apache.org>> wrote:
>>>>>> 
>>>>>> 2018-01-23 0:08 GMT+01:00 Chris Lambertus
>>>>>> <cm...@apache.org>>:
>>>>>> We just deployed a new feature to gitwcsub that lets us select a
>>>>>> specific
>>>>>> branch for a given publishing path. We can now create gitwcsub
>>>>>> publishing
>>>>>> points such as
>>>>>> 
>>>>>> 
>>>>>>/www/foo.apache.org/staging:<https://na01.safelinks.protection.outloo
>>>>>>k.com/?url=http%3A%2F%2Ffoo.apache.org%2Fstaging&data=02%7C01%7Caharu
>>>>>>i%40adobe.com%7Ced12952643d14b63e48b08d562e5b013%7Cfa7b1b5a7b34438794
>>>>>>aed2c178decee1%7C0%7C0%7C636523660994702063&sdata=8yTUhfJVaKdFRBQsDKE
>>>>>>cOEqnz30z946OYnsJbunsp7s%3D&reserved=0:>
>>>>>> foo-site:asf-site-staging
>>>>>> 
>>>>>> Is it possible to have this as:
>>>>>> 
>>>>>> 
>>>>>>/www/staging.foo.apache.org<https://na01.safelinks.protection.outlook
>>>>>>.com/?url=http%3A%2F%2Fstaging.foo.apache.org&data=02%7C01%7Caharui%4
>>>>>>0adobe.com%7Ced12952643d14b63e48b08d562e5b013%7Cfa7b1b5a7b34438794aed
>>>>>>2c178decee1%7C0%7C0%7C636523660994702063&sdata=hyBCvaYNp97J%2BE6ZCT6D
>>>>>>wN0mHkniTKwI%2FrkhGR%2BXLxk%3D&reserved=0>:
>>>>>> foo-site:asf-site-staging
>>>>>> 
>>>>>> ?
>>>>>> 
>>>>>> 
>>>>>> Regards
>>>>>> --
>>>>>> Łukasz
>>>>>> + 48 606 323 122
>>>>>> 
>>>>>> 
>>>>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.l
>>>>>>en
>>>>>>ar
>>>>>> t
>>>>>> 
>>>>>> 
>>>>>>.org.pl%2F&data=02%7C01%7Caharui%40adobe.com<https://na01.safelinks.p
>>>>>>rotection.outlook.com/?url=http%3A%2F%2F40adobe.com%2F&data=02%7C01%7
>>>>>>Caharui%40adobe.com%7Ced12952643d14b63e48b08d562e5b013%7Cfa7b1b5a7b34
>>>>>>438794aed2c178decee1%7C0%7C0%7C636523660994702063&sdata=ViYG%2F9MJXMW
>>>>>>qdSFPwYXQI3luT3GGenMZP%2F8Qs3qaljo%3D&reserved=0>%7C443
>>>>>>33
>>>>>> 5542ddf4b2f94b508d5622
>>>>>> 
>>>>>> 
>>>>>>77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113
>>>>>>&s
>>>>>>da
>>>>>> t
>>>>>> a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0
>>>>>> 
>>>>> 
>>>> 
>>>


Re: Is Jekyll available from Jenkins?

Posted by Chris Lambertus <cm...@table2.com>.
This doesn't have anything to do with GitHub pages. This is for gitpubsub websites.

http://royale.apache.org/staging



On Jan 23, 2018, 20:40, at 20:40, Alex Harui <ah...@adobe.com.INVALID> wrote:
>Thanks Chris.  I think I am missing something.  The royale-docs master
>branch shows up at:
>
>https://apache.github.io/royale-docs/
>
>What URL should I hit to see the develop branch?  I got a 404 when I
>tried
>
>https://apache.github.io/royale-docs/staging/
>
>Thanks,
>-Alex
>
>
>On 1/23/18, 5:05 PM, "Chris Lambertus" <cm...@apache.org> wrote:
>
>>Done.
>>
>>
>>
>>> On Jan 23, 2018, at 2:23 PM, Alex Harui <ah...@adobe.com.INVALID>
>>>wrote:
>>> 
>>> OK.  We have a develop branch in the royale-docs.  Can you hook that
>up
>>>to
>>> staging please?
>>> 
>>> Thanks,
>>> -Alex
>>> 
>>> On 1/23/18, 2:19 PM, "Chris Lambertus" <cm...@apache.org> wrote:
>>> 
>>>> The branch name can be arbitrary, just not asf-site.
>>>> 
>>>> 
>>>> 
>>>>> On Jan 23, 2018, at 2:18 PM, Alex Harui <ah...@adobe.com.INVALID>
>>>>> wrote:
>>>>> 
>>>>> Thanks Chris.  I assume this works only if I create a branch
>called
>>>>> asf-site-staging?
>>>>> 
>>>>> -Alex
>>>>> 
>>>>> From: Chris Lambertus <cm...@apache.org>>
>>>>> Reply-To: <bu...@apache.org>>
>>>>> Date: Tuesday, January 23, 2018 at 2:09 PM
>>>>> To: <bu...@apache.org>>
>>>>> Subject: Re: Is Jekyll available from Jenkins?
>>>>> 
>>>>> There’s nothing really to learn, it operates the exact same way as
>>>>> asf-site with gitpubsub. If you create a staging branch, and you
>ask
>>>>>us
>>>>> to set up a staging URL, we can now do so. Currently this is
>limited
>>>>>to
>>>>> deploying under your existing site in a /staging/ URL or similar,
>but
>>>>> we’re looking at ways to see if we can provide a foo.staging.a.o
>type
>>>>> URL as well.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On Jan 22, 2018, at 11:08 PM, Alex Harui
>>>>> <ah...@adobe.com.INVALID>> wrote:
>>>>> 
>>>>> Thanks Chris,  Where can I learn more about this?
>>>>> 
>>>>> -Alex
>>>>> 
>>>>> On 1/22/18, 10:06 PM, "Lukasz Lenart"
>>>>> <lu...@apache.org>> wrote:
>>>>> 
>>>>> 2018-01-23 0:08 GMT+01:00 Chris Lambertus
>>>>> <cm...@apache.org>>:
>>>>> We just deployed a new feature to gitwcsub that lets us select a
>>>>> specific
>>>>> branch for a given publishing path. We can now create gitwcsub
>>>>> publishing
>>>>> points such as
>>>>> 
>>>>> /www/foo.apache.org/staging:<http://foo.apache.org/staging:>
>>>>> foo-site:asf-site-staging
>>>>> 
>>>>> Is it possible to have this as:
>>>>> 
>>>>> /www/staging.foo.apache.org<http://staging.foo.apache.org>:
>>>>> foo-site:asf-site-staging
>>>>> 
>>>>> ?
>>>>> 
>>>>> 
>>>>> Regards
>>>>> --
>>>>> Łukasz
>>>>> + 48 606 323 122
>>>>> 
>>>>> 
>>>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.len
>>>>>ar
>>>>> t
>>>>> 
>>>>> 
>>>>>.org.pl%2F&data=02%7C01%7Caharui%40adobe.com<http://40adobe.com/>%7C443
>>>>>33
>>>>> 5542ddf4b2f94b508d5622
>>>>> 
>>>>> 
>>>>>77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&s
>>>>>da
>>>>> t
>>>>> a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0
>>>>> 
>>>> 
>>> 
>>

Re: Is Jekyll available from Jenkins?

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Thanks Chris.  I think I am missing something.  The royale-docs master
branch shows up at:

https://apache.github.io/royale-docs/

What URL should I hit to see the develop branch?  I got a 404 when I tried

https://apache.github.io/royale-docs/staging/

Thanks,
-Alex


On 1/23/18, 5:05 PM, "Chris Lambertus" <cm...@apache.org> wrote:

>Done.
>
>
>
>> On Jan 23, 2018, at 2:23 PM, Alex Harui <ah...@adobe.com.INVALID>
>>wrote:
>> 
>> OK.  We have a develop branch in the royale-docs.  Can you hook that up
>>to
>> staging please?
>> 
>> Thanks,
>> -Alex
>> 
>> On 1/23/18, 2:19 PM, "Chris Lambertus" <cm...@apache.org> wrote:
>> 
>>> The branch name can be arbitrary, just not asf-site.
>>> 
>>> 
>>> 
>>>> On Jan 23, 2018, at 2:18 PM, Alex Harui <ah...@adobe.com.INVALID>
>>>> wrote:
>>>> 
>>>> Thanks Chris.  I assume this works only if I create a branch called
>>>> asf-site-staging?
>>>> 
>>>> -Alex
>>>> 
>>>> From: Chris Lambertus <cm...@apache.org>>
>>>> Reply-To: <bu...@apache.org>>
>>>> Date: Tuesday, January 23, 2018 at 2:09 PM
>>>> To: <bu...@apache.org>>
>>>> Subject: Re: Is Jekyll available from Jenkins?
>>>> 
>>>> There’s nothing really to learn, it operates the exact same way as
>>>> asf-site with gitpubsub. If you create a staging branch, and you ask
>>>>us
>>>> to set up a staging URL, we can now do so. Currently this is limited
>>>>to
>>>> deploying under your existing site in a /staging/ URL or similar, but
>>>> we’re looking at ways to see if we can provide a foo.staging.a.o type
>>>> URL as well.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On Jan 22, 2018, at 11:08 PM, Alex Harui
>>>> <ah...@adobe.com.INVALID>> wrote:
>>>> 
>>>> Thanks Chris,  Where can I learn more about this?
>>>> 
>>>> -Alex
>>>> 
>>>> On 1/22/18, 10:06 PM, "Lukasz Lenart"
>>>> <lu...@apache.org>> wrote:
>>>> 
>>>> 2018-01-23 0:08 GMT+01:00 Chris Lambertus
>>>> <cm...@apache.org>>:
>>>> We just deployed a new feature to gitwcsub that lets us select a
>>>> specific
>>>> branch for a given publishing path. We can now create gitwcsub
>>>> publishing
>>>> points such as
>>>> 
>>>> /www/foo.apache.org/staging:<http://foo.apache.org/staging:>
>>>> foo-site:asf-site-staging
>>>> 
>>>> Is it possible to have this as:
>>>> 
>>>> /www/staging.foo.apache.org<http://staging.foo.apache.org>:
>>>> foo-site:asf-site-staging
>>>> 
>>>> ?
>>>> 
>>>> 
>>>> Regards
>>>> --
>>>> Łukasz
>>>> + 48 606 323 122
>>>> 
>>>> 
>>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.len
>>>>ar
>>>> t
>>>> 
>>>> 
>>>>.org.pl%2F&data=02%7C01%7Caharui%40adobe.com<http://40adobe.com/>%7C443
>>>>33
>>>> 5542ddf4b2f94b508d5622
>>>> 
>>>> 
>>>>77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&s
>>>>da
>>>> t
>>>> a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0
>>>> 
>>> 
>> 
>


Re: Is Jekyll available from Jenkins?

Posted by Chris Lambertus <cm...@apache.org>.
Done.



> On Jan 23, 2018, at 2:23 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> OK.  We have a develop branch in the royale-docs.  Can you hook that up to
> staging please?
> 
> Thanks,
> -Alex
> 
> On 1/23/18, 2:19 PM, "Chris Lambertus" <cm...@apache.org> wrote:
> 
>> The branch name can be arbitrary, just not asf-site.
>> 
>> 
>> 
>>> On Jan 23, 2018, at 2:18 PM, Alex Harui <ah...@adobe.com.INVALID>
>>> wrote:
>>> 
>>> Thanks Chris.  I assume this works only if I create a branch called
>>> asf-site-staging?
>>> 
>>> -Alex
>>> 
>>> From: Chris Lambertus <cm...@apache.org>>
>>> Reply-To: <bu...@apache.org>>
>>> Date: Tuesday, January 23, 2018 at 2:09 PM
>>> To: <bu...@apache.org>>
>>> Subject: Re: Is Jekyll available from Jenkins?
>>> 
>>> There’s nothing really to learn, it operates the exact same way as
>>> asf-site with gitpubsub. If you create a staging branch, and you ask us
>>> to set up a staging URL, we can now do so. Currently this is limited to
>>> deploying under your existing site in a /staging/ URL or similar, but
>>> we’re looking at ways to see if we can provide a foo.staging.a.o type
>>> URL as well.
>>> 
>>> 
>>> 
>>> 
>>> On Jan 22, 2018, at 11:08 PM, Alex Harui
>>> <ah...@adobe.com.INVALID>> wrote:
>>> 
>>> Thanks Chris,  Where can I learn more about this?
>>> 
>>> -Alex
>>> 
>>> On 1/22/18, 10:06 PM, "Lukasz Lenart"
>>> <lu...@apache.org>> wrote:
>>> 
>>> 2018-01-23 0:08 GMT+01:00 Chris Lambertus
>>> <cm...@apache.org>>:
>>> We just deployed a new feature to gitwcsub that lets us select a
>>> specific
>>> branch for a given publishing path. We can now create gitwcsub
>>> publishing
>>> points such as
>>> 
>>> /www/foo.apache.org/staging:<http://foo.apache.org/staging:>
>>> foo-site:asf-site-staging
>>> 
>>> Is it possible to have this as:
>>> 
>>> /www/staging.foo.apache.org<http://staging.foo.apache.org>:
>>> foo-site:asf-site-staging
>>> 
>>> ?
>>> 
>>> 
>>> Regards
>>> --
>>> Łukasz
>>> + 48 606 323 122
>>> 
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenar
>>> t
>>> 
>>> .org.pl%2F&data=02%7C01%7Caharui%40adobe.com<http://40adobe.com/>%7C44333
>>> 5542ddf4b2f94b508d5622
>>> 
>>> 77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&sda
>>> t
>>> a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0
>>> 
>> 
> 


Re: Is Jekyll available from Jenkins?

Posted by Alex Harui <ah...@adobe.com.INVALID>.
OK.  We have a develop branch in the royale-docs.  Can you hook that up to
staging please?

Thanks,
-Alex

On 1/23/18, 2:19 PM, "Chris Lambertus" <cm...@apache.org> wrote:

>The branch name can be arbitrary, just not asf-site.
>
>
>
>> On Jan 23, 2018, at 2:18 PM, Alex Harui <ah...@adobe.com.INVALID>
>>wrote:
>> 
>> Thanks Chris.  I assume this works only if I create a branch called
>>asf-site-staging?
>> 
>> -Alex
>> 
>> From: Chris Lambertus <cm...@apache.org>>
>> Reply-To: <bu...@apache.org>>
>> Date: Tuesday, January 23, 2018 at 2:09 PM
>> To: <bu...@apache.org>>
>> Subject: Re: Is Jekyll available from Jenkins?
>> 
>> There’s nothing really to learn, it operates the exact same way as
>>asf-site with gitpubsub. If you create a staging branch, and you ask us
>>to set up a staging URL, we can now do so. Currently this is limited to
>>deploying under your existing site in a /staging/ URL or similar, but
>>we’re looking at ways to see if we can provide a foo.staging.a.o type
>>URL as well.
>> 
>> 
>> 
>> 
>> On Jan 22, 2018, at 11:08 PM, Alex Harui
>><ah...@adobe.com.INVALID>> wrote:
>> 
>> Thanks Chris,  Where can I learn more about this?
>> 
>> -Alex
>> 
>> On 1/22/18, 10:06 PM, "Lukasz Lenart"
>><lu...@apache.org>> wrote:
>> 
>> 2018-01-23 0:08 GMT+01:00 Chris Lambertus
>><cm...@apache.org>>:
>> We just deployed a new feature to gitwcsub that lets us select a
>> specific
>> branch for a given publishing path. We can now create gitwcsub
>> publishing
>> points such as
>> 
>> /www/foo.apache.org/staging:<http://foo.apache.org/staging:>
>>foo-site:asf-site-staging
>> 
>> Is it possible to have this as:
>> 
>> /www/staging.foo.apache.org<http://staging.foo.apache.org>:
>>foo-site:asf-site-staging
>> 
>> ?
>> 
>> 
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122
>> 
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenar
>>t
>> 
>>.org.pl%2F&data=02%7C01%7Caharui%40adobe.com<http://40adobe.com/>%7C44333
>>5542ddf4b2f94b508d5622
>> 
>>77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&sda
>>t
>> a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0
>> 
>


Re: Is Jekyll available from Jenkins?

Posted by Chris Lambertus <cm...@apache.org>.
The branch name can be arbitrary, just not asf-site.



> On Jan 23, 2018, at 2:18 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> Thanks Chris.  I assume this works only if I create a branch called asf-site-staging?
> 
> -Alex
> 
> From: Chris Lambertus <cm...@apache.org>>
> Reply-To: <bu...@apache.org>>
> Date: Tuesday, January 23, 2018 at 2:09 PM
> To: <bu...@apache.org>>
> Subject: Re: Is Jekyll available from Jenkins?
> 
> There’s nothing really to learn, it operates the exact same way as asf-site with gitpubsub. If you create a staging branch, and you ask us to set up a staging URL, we can now do so. Currently this is limited to deploying under your existing site in a /staging/ URL or similar, but we’re looking at ways to see if we can provide a foo.staging.a.o type URL as well.
> 
> 
> 
> 
> On Jan 22, 2018, at 11:08 PM, Alex Harui <ah...@adobe.com.INVALID>> wrote:
> 
> Thanks Chris,  Where can I learn more about this?
> 
> -Alex
> 
> On 1/22/18, 10:06 PM, "Lukasz Lenart" <lu...@apache.org>> wrote:
> 
> 2018-01-23 0:08 GMT+01:00 Chris Lambertus <cm...@apache.org>>:
> We just deployed a new feature to gitwcsub that lets us select a
> specific
> branch for a given publishing path. We can now create gitwcsub
> publishing
> points such as
> 
> /www/foo.apache.org/staging:<http://foo.apache.org/staging:>  foo-site:asf-site-staging
> 
> Is it possible to have this as:
> 
> /www/staging.foo.apache.org<http://staging.foo.apache.org>:  foo-site:asf-site-staging
> 
> ?
> 
> 
> Regards
> --
> Łukasz
> + 48 606 323 122
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenart
> .org.pl%2F&data=02%7C01%7Caharui%40adobe.com<http://40adobe.com/>%7C443335542ddf4b2f94b508d5622
> 77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&sdat
> a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0
> 


Re: Is Jekyll available from Jenkins?

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Thanks Chris.  I assume this works only if I create a branch called asf-site-staging?

-Alex

From: Chris Lambertus <cm...@apache.org>>
Reply-To: <bu...@apache.org>>
Date: Tuesday, January 23, 2018 at 2:09 PM
To: <bu...@apache.org>>
Subject: Re: Is Jekyll available from Jenkins?

There’s nothing really to learn, it operates the exact same way as asf-site with gitpubsub. If you create a staging branch, and you ask us to set up a staging URL, we can now do so. Currently this is limited to deploying under your existing site in a /staging/ URL or similar, but we’re looking at ways to see if we can provide a foo.staging.a.o type URL as well.




On Jan 22, 2018, at 11:08 PM, Alex Harui <ah...@adobe.com.INVALID>> wrote:

Thanks Chris,  Where can I learn more about this?

-Alex

On 1/22/18, 10:06 PM, "Lukasz Lenart" <lu...@apache.org>> wrote:

2018-01-23 0:08 GMT+01:00 Chris Lambertus <cm...@apache.org>>:
We just deployed a new feature to gitwcsub that lets us select a
specific
branch for a given publishing path. We can now create gitwcsub
publishing
points such as

/www/foo.apache.org/staging:<http://foo.apache.org/staging:>  foo-site:asf-site-staging

Is it possible to have this as:

/www/staging.foo.apache.org<http://staging.foo.apache.org>:  foo-site:asf-site-staging

?


Regards
--
Łukasz
+ 48 606 323 122
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenart
.org.pl%2F&data=02%7C01%7Caharui%40adobe.com<http://40adobe.com/>%7C443335542ddf4b2f94b508d5622
77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&sdat
a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0


Re: Is Jekyll available from Jenkins?

Posted by Chris Lambertus <cm...@apache.org>.
There’s nothing really to learn, it operates the exact same way as asf-site with gitpubsub. If you create a staging branch, and you ask us to set up a staging URL, we can now do so. Currently this is limited to deploying under your existing site in a /staging/ URL or similar, but we’re looking at ways to see if we can provide a foo.staging.a.o type URL as well.




> On Jan 22, 2018, at 11:08 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> Thanks Chris,  Where can I learn more about this?
> 
> -Alex
> 
> On 1/22/18, 10:06 PM, "Lukasz Lenart" <lukaszlenart@apache.org <ma...@apache.org>> wrote:
> 
>> 2018-01-23 0:08 GMT+01:00 Chris Lambertus <cm...@apache.org>:
>>> We just deployed a new feature to gitwcsub that lets us select a
>>> specific
>>> branch for a given publishing path. We can now create gitwcsub
>>> publishing
>>> points such as
>>> 
>>> /www/foo.apache.org/staging:  foo-site:asf-site-staging
>> 
>> Is it possible to have this as:
>> 
>> /www/staging.foo.apache.org:  foo-site:asf-site-staging
>> 
>> ?
>> 
>> 
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenart <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenart>
>> .org.pl%2F&data=02%7C01%7Caharui%40adobe.com <http://40adobe.com/>%7C443335542ddf4b2f94b508d5622
>> 77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&sdat
>> a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0


Re: Is Jekyll available from Jenkins?

Posted by Lukasz Lenart <lu...@apache.org>.
Daniel, the task is here
https://issues.apache.org/jira/browse/INFRA-15896

2018-01-23 22:28 GMT+01:00 Lukasz Lenart <lu...@apache.org>:
> 2018-01-23 8:55 GMT+01:00 Daniel Pono Takamori <po...@apache.org>:
>> In regards to:
>>>Is it possible to have this as:
>>>
>>>/www/staging.foo.apache.org:  foo-site:asf-site-staging
>> If you'd like to be a guinea pig for this I can set this up for you;
>> this is a feature of the CMS we would like to recreate for gitpubsub
>> but hasn't been very high priority comparatively.  Making a ticket on
>> the Infra JIRA or joining Hipchat would be the best way to get that
>> going.
>
> Sure, I can be a guinea pig, will create a ticket tomorrow.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/

Re: Is Jekyll available from Jenkins?

Posted by Lukasz Lenart <lu...@apache.org>.
2018-01-23 8:55 GMT+01:00 Daniel Pono Takamori <po...@apache.org>:
> In regards to:
>>Is it possible to have this as:
>>
>>/www/staging.foo.apache.org:  foo-site:asf-site-staging
> If you'd like to be a guinea pig for this I can set this up for you;
> this is a feature of the CMS we would like to recreate for gitpubsub
> but hasn't been very high priority comparatively.  Making a ticket on
> the Infra JIRA or joining Hipchat would be the best way to get that
> going.

Sure, I can be a guinea pig, will create a ticket tomorrow.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

Re: Is Jekyll available from Jenkins?

Posted by Daniel Pono Takamori <po...@apache.org>.
https://github.com/apache/infrastructure-puppet/blob/deployment/modules/gitwcsub/files/config/gitwcsub.cfg#L34
and https://github.com/apache/infrastructure-puppet/blob/deployment/modules/gitwcsub/files/config/gitwcsub.cfg#L83
are the docs and (currently only) config line.

In regards to:
>Is it possible to have this as:
>
>/www/staging.foo.apache.org:  foo-site:asf-site-staging
If you'd like to be a guinea pig for this I can set this up for you;
this is a feature of the CMS we would like to recreate for gitpubsub
but hasn't been very high priority comparatively.  Making a ticket on
the Infra JIRA or joining Hipchat would be the best way to get that
going.

On Tue, Jan 23, 2018 at 4:08 PM, Alex Harui <ah...@adobe.com.invalid> wrote:
> Thanks Chris,  Where can I learn more about this?
>
> -Alex
>
> On 1/22/18, 10:06 PM, "Lukasz Lenart" <lu...@apache.org> wrote:
>
>>2018-01-23 0:08 GMT+01:00 Chris Lambertus <cm...@apache.org>:
>>> We just deployed a new feature to gitwcsub that lets us select a
>>>specific
>>> branch for a given publishing path. We can now create gitwcsub
>>>publishing
>>> points such as
>>>
>>> /www/foo.apache.org/staging:  foo-site:asf-site-staging
>>
>>Is it possible to have this as:
>>
>>/www/staging.foo.apache.org:  foo-site:asf-site-staging
>>
>>?
>>
>>
>>Regards
>>--
>>Łukasz
>>+ 48 606 323 122
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenart
>>.org.pl%2F&data=02%7C01%7Caharui%40adobe.com%7C443335542ddf4b2f94b508d5622
>>77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&sdat
>>a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0
>

Re: Is Jekyll available from Jenkins?

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Thanks Chris,  Where can I learn more about this?

-Alex

On 1/22/18, 10:06 PM, "Lukasz Lenart" <lu...@apache.org> wrote:

>2018-01-23 0:08 GMT+01:00 Chris Lambertus <cm...@apache.org>:
>> We just deployed a new feature to gitwcsub that lets us select a
>>specific
>> branch for a given publishing path. We can now create gitwcsub
>>publishing
>> points such as
>>
>> /www/foo.apache.org/staging:  foo-site:asf-site-staging
>
>Is it possible to have this as:
>
>/www/staging.foo.apache.org:  foo-site:asf-site-staging
>
>?
>
>
>Regards
>-- 
>Łukasz
>+ 48 606 323 122 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lenart
>.org.pl%2F&data=02%7C01%7Caharui%40adobe.com%7C443335542ddf4b2f94b508d5622
>77688%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636522843986424113&sdat
>a=wsG8WHqTllc%2BoC4hLCCXC5t5fM1ZYShtUdh4dGRO7yo%3D&reserved=0


Re: Is Jekyll available from Jenkins?

Posted by Lukasz Lenart <lu...@apache.org>.
2018-01-23 0:08 GMT+01:00 Chris Lambertus <cm...@apache.org>:
> We just deployed a new feature to gitwcsub that lets us select a specific
> branch for a given publishing path. We can now create gitwcsub publishing
> points such as
>
> /www/foo.apache.org/staging:  foo-site:asf-site-staging

Is it possible to have this as:

/www/staging.foo.apache.org:  foo-site:asf-site-staging

?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

Re: Is Jekyll available from Jenkins?

Posted by Chris Lambertus <cm...@apache.org>.

> On Jan 19, 2018, at 11:37 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> I'm just learning about Jekyll and GH Pages.  We will be using GH Pages
> but I don't see a way to have the equivalent of a staging server like we
> do in Apache CMS.


Hi Alex,

We just deployed a new feature to gitwcsub that lets us select a specific branch for a given publishing path. We can now create gitwcsub publishing points such as

/www/foo.apache.org/staging: <http://foo.apache.org/staging:> 	foo-site:asf-site-staging


I believe this will largely address your concern regarding staging environments.



Re: Is Jekyll available from Jenkins?

Posted by Steve Rowe <sa...@gmail.com>.
Hi Alex,

Like the Beam project, the HTML edition of the Solr Reference Guide is regularly built from Jenkins with Jekyll via a script[1], which uses RVM[2] to enable Jekyll+gems, then invokes the relevant targets from the Solr Ant build.  The result is then served from Jenkins’s “Document”/javadoc view, e.g. <https://builds.apache.org/view/L/view/Lucene/job/Solr-reference-guide-master/javadoc/>.

[1] https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;a=blob;f=dev-tools/scripts/jenkins.build.ref.guide.sh
[2] Ruby Version Manager (RVM): https://rvm.io

--
Steve
www.lucidworks.com

> On Jan 20, 2018, at 2:37 AM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> I'm just learning about Jekyll and GH Pages.  We will be using GH Pages
> but I don't see a way to have the equivalent of a staging server like we
> do in Apache CMS.  So I thought about using Jenkins to call Jekyll to
> build (but not serve) the site.  Then the last successful artifacts would
> act as a staging server?
> 
> Or if there is a better way that's fine too.
> 
> Thanks,
> -Alex
> 
> 


Re: Is Jekyll available from Jenkins?

Posted by Kenneth Knowles <kl...@google.com.INVALID>.
On the Beam project, we've got a Jenkins job that stages the site:
https://github.com/apache/beam/blob/master/.test-infra/jenkins/job_beam_PreCommit_Website_Stage.groovy

You can see Jenkins making a comment about where the staged contents are,
as here: https://github.com/apache/beam-site/pull/273. Lately, Jenkins has
stopped making these convenient comments (IIUC inherited configs change
under us - sad face) but the staged URL is still available in the logs, or
by guesswork.

TBH it is just a shell script with no magic or infra needs.

Kenn

On Sun, Jan 21, 2018 at 6:42 AM, Lukasz Lenart <lu...@apache.org>
wrote:

> ASF doesn't support GH Pages, instead you can use a "asf-site" branch
> which can be automatically deployed into a web server (fill a ticket
> for INFRA)[1]. We use Docker to test changes locally as there is no a
> staging option when using Jekyll [2].
>
> [1] https://builds.apache.org/view/S-Z/view/Struts/job/Struts-site/
> [2] https://github.com/apache/struts-site
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2018-01-20 8:37 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> > I'm just learning about Jekyll and GH Pages.  We will be using GH Pages
> > but I don't see a way to have the equivalent of a staging server like we
> > do in Apache CMS.  So I thought about using Jenkins to call Jekyll to
> > build (but not serve) the site.  Then the last successful artifacts would
> > act as a staging server?
> >
> > Or if there is a better way that's fine too.
> >
> > Thanks,
> > -Alex
> >
> >
>

Re: Is Jekyll available from Jenkins?

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Sun, Jan 21, 2018 at 3:42 PM, Lukasz Lenart <lu...@apache.org> wrote:
> ...We use Docker to test changes locally as there is no a
> staging option when using Jekyll...

Similar for Sling, we test changes locally (using JBake from a Maven
build) and then push the content live via the asf-site branch.

At https://github.com/apache/sling-site

-Bertrand

Re: Is Jekyll available from Jenkins?

Posted by Lukasz Lenart <lu...@apache.org>.
ASF doesn't support GH Pages, instead you can use a "asf-site" branch
which can be automatically deployed into a web server (fill a ticket
for INFRA)[1]. We use Docker to test changes locally as there is no a
staging option when using Jekyll [2].

[1] https://builds.apache.org/view/S-Z/view/Struts/job/Struts-site/
[2] https://github.com/apache/struts-site


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2018-01-20 8:37 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> I'm just learning about Jekyll and GH Pages.  We will be using GH Pages
> but I don't see a way to have the equivalent of a staging server like we
> do in Apache CMS.  So I thought about using Jenkins to call Jekyll to
> build (but not serve) the site.  Then the last successful artifacts would
> act as a staging server?
>
> Or if there is a better way that's fine too.
>
> Thanks,
> -Alex
>
>