Closed absolutehype closed 6 years ago
I think I remember @finnp put this: _.drop(_.split(env.GIT_BRANCH, '/')).join('/')
in because of the other Jenkins Git plugin which puts some additional 'xyz/' to the env.GIT_BRANCH.
can you confirm @finnp ?
so we need both versions depending on how many '/' are in env.GIT_BRANCH
Bump. Any update on this @finnp?
Closing in favour #73 which seems more far-reaching and includes this.
The
branchName
requires thegreenkeeper/
prefix in order to continue.This continually fails on Jenkins with the message below when trying to setup Greenkeeper (branch name being
greenkeeper/initial
)https://github.com/greenkeeperio/greenkeeper-lockfile/blob/3f8726855da777f8caf66e50b7ec5af6a2774468/update.js#L46-L48
I'm updating
branchName
so that it no longer strips the prefix. This aligns the Jenkins implementation with the other CI serviceshttps://github.com/greenkeeperio/greenkeeper-lockfile/blob/3f8726855da777f8caf66e50b7ec5af6a2774468/ci-services/travis.js#L7 https://github.com/greenkeeperio/greenkeeper-lockfile/blob/3f8726855da777f8caf66e50b7ec5af6a2774468/ci-services/circleci.js#L7