This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import binascii | |
import StringIO | |
class PKCS7Encoder(object): | |
def __init__(self, k=16): | |
self.k = k | |
## @param text The padded text for which the padding is to be removed. | |
# @exception ValueError Raised when the input padding is missing or corrupt. | |
def decode(self, text): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def myJob = hudson.model.Hudson.instance.getItem("My_Job") | |
def lastBuild = myJob.getLastBuild() | |
def cause = lastBuild.getCause(hudson.model.Cause$UpstreamCause) | |
def parentBuildNum = cause.upstreamBuild | |
def parentJobName = cause.upstreamProject | |
def parentJobUrl = cause.upstreamUrl | |
println(parentBuildNum) | |
println(parentJobName) | |
println(parentJobUrl) |