Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getCommitId using bitbucket server API

pp
Contributor
November 13, 2019

I am trying to get the commitId using the bitbucket classes running it in script posthooks

import com.atlassian.bitbucket.commit.AbstractCommitRequest;
import com.atlassian.bitbucket.commit.CommitRequest;
import com.atlassian.bitbucket.commit.CommitService;

def commitId = commit.getCommitId()

It throws me below error

[static type checking] variable commit is undeclared.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events