[openstack-dev] [OpenStack-Infra] [cinder] How to configure the third party CI to be triggered only when jenkins +1
Sean McGinnis
sean.mcginnis at gmx.com
Tue Feb 23 04:01:37 UTC 2016
On Tue, Feb 23, 2016 at 02:07:54AM +0000, liuxinguo wrote:
> Thanks for your input John Griffith, it looks like that the code you modify is not in layout.yaml ().
> Could you tell me the exactly filename where you made the change?
>
> Thanks very much!
> Wilson Liu
That is with sos-ci. Basically a custom scripted CI system. I'm not sure
what the equivalent change would be in the "official" CI, but I do know
there are at least a couple folks that have configured their CI to do
the same.
>
> 发件人: John Griffith [mailto:john.griffith8 at gmail.com]
> 发送时间: 2016年2月23日 9:40
> 收件人: OpenStack Development Mailing List (not for usage questions)
> 抄送: OpenStack Infra; Luozhen
> 主题: Re: [OpenStack-Infra] [openstack-dev] [cinder] How to configure the third party CI to be triggered only when jenkins +1
>
>
>
> On Mon, Feb 22, 2016 at 6:32 PM, liuxinguo <liuxinguo at huawei.com<mailto:liuxinguo at huawei.com>> wrote:
> Hi,
>
> There is no need to trigger third party CI if a patch does not pass Jenkins Verify.
> I think there is a way to reach this but I’m not sure how.
>
> So is there any reference or suggestion to configure the third party CI to be triggered only when jenkins +1?
>
> Thanks for any input!
>
> Regards,
> Wilson Liu
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> In my case I inspect the comments and only trigger a run on either "run solidfire" or on a Jenkins +1. The trick is to parse out the comments and look for the conditions that you are interested in. The code looks something like this:
>
> if (event.get('type', 'nill') == 'comment-added' and
>
>
> 'Verified+1' in event['comment'] and
>
>
> cfg['AccountInfo']['project_name'] == event['change']['project'] and
>
>
> event['author']['username'] == 'jenkins' and
>
>
> event['change']['branch'] == 'master'):
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list