Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Jenkins and GitLab
  • From: Frederic Gurr <frederic.gurr@xxxxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 11 Dec 2020 16:37:14 +0100
  • Autocrypt: addr=frederic.gurr@xxxxxxxxxxxxxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsFNBFeN7eABEADU1DWW0e6X3UBsKwwN8+EtviRWuEcUTJBCspUfyhS+LnfzB944GN3h32uT 5ClPPc8bUIuipCfW/2BlkP9EhK3hfiD/LwDv2tS9K5nFsi+SawjYLRvQG+7d21Pe3LVUWpv3 K6OXuEZvdf+e/ljkhtATt0OmwbvxN3i9vzJHAYiFUTNgTO27ui2sqOI9uDXXTP7L0OdMbjun lsBMKMzd8BZLvsqbBvUbWihXqDvCgnPLbJw6VWrLjlfvWXQ9qIQQemzyG8tlII49LpX3gwH0 /jS6HVgSh52L7xohIivkJa4JkpPhGi8srAfxptQ3Kl2udhQkM8wswXsbIT89gsbJflsbYfDt uZLfjA9U+9UyrlgF5mYwpgGIawvuyi+YcJy8OzJWLnGq7jayJRT85udCiyDkCTDXxu0jSSjk By+NKG2T/dO2R96RbR2PuSzERhyMSCMAZOxoqCYf3mD9oeiNB9flwnxJpHKxuGBkG8zaQE6x sw4f4ZS88OCh854t33JKrlHXB9UTlMRHO9jj4cVKzFrEFZlUdIuu2WuDxYnFsI4tZAabn8V1 mFOkwz8ir/3IpM7GQbbq3ierJ5rYd87rkYroeNAOmUZW/7cM/5u7bOEzb+xlpn9OqQ63nAmN M2vMZEUIfzU/HhkhM3ItjWf74Fr4I9jseIvkrF3CrMyU1wPcJwARAQABzTRGcmVkZXJpYyBH dXJyIDxmcmVkZXJpYy5ndXJyQGVjbGlwc2UtZm91bmRhdGlvbi5vcmc+wsF9BBMBCAAnBQJZ 7dQrAhsjBQkJZgGABQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEBCQq+fyYxnh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ered-to: cbi-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cbi-dev>
  • List-help: <mailto:cbi-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cbi-dev>, <mailto:cbi-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cbi-dev>, <mailto:cbi-dev-request@eclipse.org?subject=unsubscribe>
  • Organization: Eclipse Foundation
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hi,

Webhook and reporting the status works now as expected. It required some
tweaking with permissions and API tokens.

If you see any other issues related to the integration with Jenkins,
please open a Bugzilla or a GitLab issue for it.

Regards,

Fred

On 10.12.20 19:13, Dennis Hendriks wrote:
> Hi Fred,
> 
> Thanks for adding the webhook to automatically trigger builds on
> Jenkins. It works.
> 
> I look forward to your ideas for reporting back to GitLab.
> 
> Dennis
> 
> ------------------------------------------------------------------------
> *Van:* cbi-dev-bounces@xxxxxxxxxxx <cbi-dev-bounces@xxxxxxxxxxx> namens
> Frederic Gurr <frederic.gurr@xxxxxxxxxxxxxxxxxxxxxx>
> *Verzonden:* dinsdag 8 december 2020 20:01
> *Aan:* cbi-dev@xxxxxxxxxxx <cbi-dev@xxxxxxxxxxx>
> *Onderwerp:* Re: [cbi-dev] Jenkins and GitLab
>  
> Hi,
> 
> We are still in the process of finding out what the best workflows are
> and did not have a lot of feedback from the few projects that use GitLab
> and Jenkins already. I will try to add a few notes and pointers to the
> wiki over the next days.
> 
> Thanks for being on the forefront and sharing the knowledge.
> 
> 1. I will setup a webhook on the GitLab side that triggers on pushes,
> merge requests, etc.
> 
> 2. I will look into it.
> 
> Regards,
> 
> Fred
> 
> On 08.12.20 16:28, Dennis Hendriks wrote:
>> Hi all,
>> 
>> First of all, it is unfortunate that there is no GitLab-specific
>> information at https://wiki.eclipse.org/Jenkins.
>> 
>> I did manage to create a working Jenkins build, based on a Jenkinsfile
>> in a GitLab repository, for the Eclipse ESCET project.
>> 
>> However, I do have some questions, as I've not been able to figure this out:
>> 
>> 1) I can click on 'Scan GitLab Project Now' to find new commits and
>> merge requests. I can also configure to do this periodically. I'm
>> wondering if there is not a better way to do this? E.g. to trigger the
>> scan when a new commit is pushed or a merge request is created, instead
>> of a time-based polling or manual scan?
>> 
>> E.g. maybe something like
>> this: https://github.com/jenkinsci/multibranch-scan-webhook-trigger-plugin ?
>> 
>> Or maybe
>> this: https://github.com/jenkinsci/gitlab-plugin#pipeline-multibranch-jobs-1 ?
>> 
>> 2) Is there a way to get the build status/result back to GitLab?
>> 
>> I configured 'Log build status as comment on GitLab' option for the
>> 'Multibranch Pipeline'. I did not configure a 'sudo username' (no idea
>> what to fill in). It seems to have no effect. Also, enabling the 'enable
>> logging successful build' setting won't stick after saving the
>> configuration. How do I make this work?
>> 
>> I'm also wondering if there are alternatives. Can it be done from a
>> Jenkinsfile? Is there no better integration than posting comments to
>> merge requests?
>> 
>> Regards,
>> Dennis
>> 
>> _______________________________________________
>> cbi-dev mailing list
>> cbi-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cbi-dev
>> 
> 
> -- 
> Frederic Gurr
> Release Engineer | Eclipse Foundation Europe GmbH
> 
> Annastr. 46, D-64673 Zwingenberg
> Handelsregister: Darmstadt HRB 92821
> Managing Directors: Gaël Blondelle, Mike Milinkovich
> _______________________________________________
> cbi-dev mailing list
> cbi-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/cbi-dev
> 
> _______________________________________________
> cbi-dev mailing list
> cbi-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cbi-dev
> 

-- 
Frederic Gurr
Release Engineer | Eclipse Foundation Europe GmbH

Annastr. 46, D-64673 Zwingenberg
Handelsregister: Darmstadt HRB 92821
Managing Directors: Gaël Blondelle, Mike Milinkovich


Back to the top