DeepFactor integrates with Jenkins using a Jenkins plugin. This provides a simple mechanism to automatically instrument your applications using DeepFactor as part of the build process. From your Jenkins portal, please follow the instructions below to automatically instrument your applications with DeepFactor. Follow the instructions below to integrate Jenkins and DeepFactor.
First, click on manage Jenkins and clink on Manage Plugins.
Next, upload the DeepFactor plugin.
Click on Manage Jenkins and then Configure System.
Fill in the parameters.
Click “New Item” in order to create new job.
Select Pipeline Job.
A sample Pipeline should look like the code below:
pipeline{
agent any
stages {
stage("instrument redis"){
steps{
deepfactor alpine: true,
pullImage: true,
imageToBeInstrumented: 'redis:6.0.7-alpine',
appName: 'Ecommerce',
componentName: 'redis'
}
}
}
}
Next, select your Pipeline.
Click, Build Now to start the job.
Finally, click console output to see the status.
Sample Freestyle project with the DeepFactor Build Step
Enter an item name.
Select Build Triggers and add the DeepFactor Build Image.
Save the Build.
Sample Pipeline Project to Instrument a Redis Image
Enter an item name and select Pipeline:
Add the Portal URL and Control Plane credentials:
Add the Pipeline code:
pipeline{
agent any
stages {
stage("instrument redis"){
steps{
deepfactor alpine: true,
pullImage: true,
imageToBeInstrumented: 'redis:6.0.7-alpine',
appName: 'Ecommerce',
componentName: 'redis'
}
}
}
}
Comments
0 comments
Please sign in to leave a comment.