if (c instanceof GitlabCause) {
Gitlab gitlab = new Gitlab();
GitlabCause cause = (GitlabCause) c;
try {
String url = Jenkins.getInstance().getRootUrl() + wi.getUrl();
<BUG>gitlab.changeCommitStatus(cause.getSourceProjectId(), cause.getSourceBranch(), cause.getLastCommitId(), "pending", url);
</BUG>
} catch (IOException e) {
LOGGER.info("error trying to set pending status");
}

if (c instanceof GitlabCause) {
Gitlab gitlab = new Gitlab();
GitlabCause cause = (GitlabCause) c;
try {
String url = Jenkins.getInstance().getRootUrl() + wi.getUrl();
gitlab.changeCommitStatus(cause.getTargetProjectId(), cause.getSourceBranch(), cause.getLastCommitId(), "pending", url);
} catch (IOException e) {
LOGGER.info("error trying to set pending status");
