Closed DenisBY closed 4 years ago
Found it here: https://github.com/ef-labs/stash-hook-mirror/blob/master/src/main/java/com/englishtown/bitbucket/hook/MirrorSettings.java
Just in case someone interested. Full resource is:
resource "bitbucketserver_repository_hook" "repository_hook" {
project = var.project
repository = var.repository
hook = "com.englishtown.stash-hook-mirror:mirror-repository-hook"
settings = {
mirrorRepoUrl = "https://git-codecommit.eu-central-1.amazonaws.com/v1/repos/${var.repository}"
username = var.username
password = var.password
tags = true
notes = true
atomic = true
}
}
Is it possible to configure this plugin using REST-API? Actually I want to use terraform bitbucket plugin and I found only 'hook' value (com.englishtown.stash-hook-mirror:mirror-repository-hook) but I don't have any idea how to provide 'Mirror Repo URL', 'Username' and 'Password' as 'settings' map. Please help