I have a Jenkins job that gets triggered by creating a new release or tag in GitHub. It is configured like this :
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository g...@github.com:MMS/ml-jw-api-lib.git
> git init /var/lib/jenkins/workspace/ML/JWATCH/deploy-ml-jw-api-lib # timeout=10
Fetching upstream changes from g...@github.com:MMS/ml-jw-api-lib.git
> git --version # timeout=10
> git fetch --tags --progress g...@github.com:MMS/ml-jw-api-lib.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url g...@github.com:MMS/ml-jw-api-lib.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url g...@github.com:MMS/ml-jw-api-lib.git # timeout=10
Fetching upstream changes from g...@github.com:MMS/ml-jw-api-lib.git
> git fetch --tags --progress g...@github.com:MMS/ml-jw-api-lib.git +refs/tags/*:refs/remotes/origin/tags/*
Seen branch in repository origin/tags/v9
> git tag -l # timeout=10
...
> git rev-parse refs/tags/v4^{commit} # timeout=10 > git rev-parse refs/tags/v5^{commit} # timeout=10ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
[WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
Finished: FAILURE