Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
task runLoadTest(type: JavaExec) { | |
classpath = sourceSets.main.runtimeClasspath + sourceSets.test.runtimeClasspath + sourceSets.e2eTest.runtimeClasspath | |
jvmArgs = [ '-Dgatling.core.directory.binaries=./build/classes/e2eTest' ] | |
// Gatling application | |
main = "io.gatling.app.Gatling" | |
// Specify the simulation to run | |
args = Eval.me("['-s', 'BasicSimulation']") | |
} |
def lambda_handler(event, context): | |
import subprocess | |
result = subprocess.call("curl -I http://foo.bar", shell=True) | |
return result | |