This file contains hidden or 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
| 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}'`" |
This file contains hidden or 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 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 |