Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] PushOption for gitlab-ci

On Tue, Sep 14, 2021 at 6:04 PM Leandro Cerencio via egit-dev <egit-dev@xxxxxxxxxxx> wrote:
Thanks for replying Mathias.

I d like to contrib, but I dont know how to start.
Should I open some issue on egit project?

If you first want to discuss the new feature, this is a good idea.
Find the contributor guide here
On Tuesday, September 14, 2021, 12:07:20 PM GMT-3, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:

On Tue, Sep 14, 2021 at 4:34 PM Leandro Cerencio via egit-dev <egit-dev@xxxxxxxxxxx> wrote:

First of all, I am Brazilian and not English native spoken, I am willing to reply you if my communication is not so clear.
At my company, we have gitlab-ci for managing CI runners. Sometimes, the developer needs run the runner with
custom variable and he should use --push-option parameter, like Push Options | GitLab. And, the push-option works
in jgit command line.

I tried to add the push.pushOption to the repo properties on Git Perspective. But, it was not working.

So, I patched the org.eclipse.egit.core.op.PushOperation class for supporting push.pushOption repository
properties. I could upload "ci.skip" option. But, the problem is when I pushed ci.variable="MY_ENV_VARIABLE=test123",
it is not lauching the CI runner at all.

I attached the patch file.

Where should I look: jgit or egit? And how can I debug to check what is arriving on gitlab, I tracked all jgit transport classes,
and I couldnt see any problem?

You can't set push options in EGit since the UI doesn't provide a way to set them and
EGit's PushOperation doesn't set them via Transport#setPushOptions or PushCommand#setPushOptions.

Contributions are welcome :-)

egit-dev mailing list
To unsubscribe from this list, visit

Back to the top