Skip to content

Instantly share code, notes, and snippets.

View gestj's full-sized avatar
🎯
Focusing

Johannes Gest gestj

🎯
Focusing
View GitHub Profile
@gestj
gestj / connect.bitbucket.commit.groovy
Last active December 16, 2015 18:57
Script for jenkins scriptler plugin (works with Jenkins v1.572)
import groovy.json.*
import hudson.model.*
import static groovy.json.JsonOutput.*
import java.util.logging.*
import java.security.MessageDigest
class Bitbucket {
def static BITBUCKET_REST_URL = "https://bitbucket.org"
def static BITBUCKET_API_URL = BITBUCKET_REST_URL + "/api/2.0/"
def static LOGGER = Logger.getLogger("connect.bitbucket.commit.groovy.Bitbucket")