Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
atlassian-bitbucket-server-integration-1.0.3, jenkins-2.204.1, git-4.0.0, git-client-3.0.0
-
-
1.1.0
Description
Environment entries like GIT_COMMIT, GIT_BRANCH, etc. are null when using this integration.
pipeline {
agent any
stages {
stage('stage') {
steps {
echo "Value is: ${env.GIT_COMMIT}"
}
}
}
}
will output Value is: null
com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCM delegates a lot of calls to hudson.plugins.git.GitSCM, however method buildEnvironment(Run<?, ?> build, Map<String, String> env) is omitted and not overridden and the default implementation takes place causing all environment entries generated by Git plugin to be missing.