Skip to content

Instantly share code, notes, and snippets.

@jozenstar
jozenstar / jenkins_aws_codepipeline.sh
Last active May 14, 2020 08:01
Jenkins AWS CodePipeline job#
aws codepipeline put-job-success-result --job-id `curl ${UPSTREAM_BUILD_URL}/pollingLog/ | egrep -o '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'`"
@jozenstar
jozenstar / gist:2c29aef6efe6f76a45c5c03e99a76402
Created January 9, 2020 13:06
Active Choice Interactive Parameter
import hudson.util.RemotingDiagnostics
import jenkins.model.Jenkins
String agent_name = 'JENKINS_NODE_NAME'
//groovy script you want executed on an agent
groovy_script = ''' println(['bash', '-c', 'commands'].execute().text)
'''.trim()
String result