Docker image based on jenkins/jenkins:lts that showcases instr usage. It contains a pipeline job configured to get the source code from instr-ios-sample-app and run the pipeline script hosted in the repository. The pipeline runs the tests, uses instr to run a performance benchmark and uses the Jenkins Performance Plugin to record the results.
- Environment capable of running instr: macOS with SIP disabled.
- Docker
- Java 1.8 or higher
- Run the Jenkins server locally using Docker.
docker run -p 8080:8080 -p 50000:50000 ruenzuo/instrumentality-jenkins-performance-sample-config
Wait until you see INFO: Jenkins is fully up and running
before continuing.
- Connect your computer to the Jenkins running in Docker as a build node.
curl -o "agent.jar" http://localhost:8080/jnlpJars/agent.jar
java -jar "agent.jar" -jnlpUrl http://localhost:8080/computer/macos-host/slave-agent.jnlp -workDir "/tmp/jenkins_macos_host"
- Navigate to http://localhost:8080 and run/inspect the sample job prepared for you.