apache / incubator-kie-kogito-images

Images for Kogito
http://kogito.kie.org
Apache License 2.0
21 stars 78 forks source link

Contributor's fork must be named incubator-kie-kogito-images or PR checks won't work #1729

Open ricardozanini opened 6 months ago

ricardozanini commented 6 months ago

There's a bug in our Build & Test pipeline where the script is expecting the fork's to be named incubator-kie-kogito-images:

Cloning the remote Git repository
Cloning repository https://github.com/wmedvede/incubator-kie-kogito-images.git
 > git init /home/jenkins/jenkins-agent/workspace/KIE/kogito/main/pullrequest/kogito-images.build-and-test@2/incubator-kie-kogito-images/githubscm-prepare-commit-incubator-kie-kogito-images # timeout=10
Fetching upstream changes from https://github.com/wmedvede/incubator-kie-kogito-images.git
 > git --version # timeout=10
 > git --version # 'git version 2.34.1'
using GIT_ASKPASS to set credentials asf-ci token
 > git fetch --tags --force --progress -- https://github.com/wmedvede/incubator-kie-kogito-images.git +refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://github.com/wmedvede/incubator-kie-kogito-images.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: remote: Repository not found.
fatal: repository 'https://github.com/wmedvede/incubator-kie-kogito-images.git/' not found

We should use the build parameters instead where we have the actual fork information.