|[cbi-dev] Jenkins and GitLab|
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 ?
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?
Back to the top