You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the sha value is null the resource is failing in the check step and no merge request can be build.
resource script '/opt/resource/check []' failed: exit status 128
stderr:
Already up-to-date.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3440 100 3440 0 0 19355 0 --:--:-- --:--:-- --:--:-- 19545
fatal: ambiguous argument 'null': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
When in Gitlab a merge request is open but its source branch was deleted, the Gitlab API returns the following json:
Because the
sha
value isnull
the resource is failing in the check step and no merge request can be build.The problematic line is https://github.com/swisscom/gitlab-merge-request-resource/blob/master/scripts/check#L72
Maybe it would be good to check for this case and just skip this merge request with a warning message.
PS:
Thank you for the plugin, it works great! 👍
The text was updated successfully, but these errors were encountered: