我已经设置var progress: CGFloat {
get {
return _progress
}
set {
let value = max(min(newValue,1.0),0.0)
if let bar = bar {
bar.xScale = value
_progress = value
// Set the color
if value <= 0.2 {
bar.color = .red
} else if // Continue on your own
}
}
}
来触发我的Jenkins实例的构建。现在,我需要访问这些事件的有效负载(即Push和Pull Request),以自定义Jenkinsfile中的某些步骤。有可能吗?