samrocketman / jenkins-bootstrap-jervis

An automated Jenkins CI environment which provisions agent infrastructure on the fly per build.
Apache License 2.0
75 stars 30 forks source link

Cannot build tip of branch #20

Closed samrocketman closed 6 years ago

samrocketman commented 6 years ago

Get an error where Pipeline multibranch plugin complains it can't build the tip of master (or any branch that has been built).

Sample error:

Started by user Sam Gleske
Running in Durability level: MAX_SURVIVABILITY
Loading library Jervis Global Library@master
Attempting to resolve master from remote references...
 > git --version # timeout=10
using GIT_ASKPASS to set credentials GitHub user and personal access token used by multibranch pipeline jobs for the GitHub API
 > git ls-remote -h -t https://github.com/samrocketman/jervis.git # timeout=10
Found match: refs/heads/master revision a82c0668ab31f0c992d26575e415971648c5c185
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/samrocketman/jervis.git # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/samrocketman/jervis.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials GitHub user and personal access token used by multibranch pipeline jobs for the GitHub API
 > git fetch --no-tags --progress https://github.com/samrocketman/jervis.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision a82c0668ab31f0c992d26575e415971648c5c185 (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a82c0668ab31f0c992d26575e415971648c5c185
Commit message: "bump to snapshot"
 > git rev-list --no-walk a82c0668ab31f0c992d26575e415971648c5c185 # timeout=10
[Pipeline] End of Pipeline
ERROR: Could not determine exact tip revision of jervis_simple
Finished: FAILURE

This problem is ongoing and tracked by https://issues.jenkins-ci.org/browse/JENKINS-46290

samrocketman commented 6 years ago

This has been fixed. Defining an ID in the github branch source config of the job dsl code fixed it.