Run Akto tests in Jenkins CI/CD
- Navigate to Manage Jenkins > Manage Plugins > Advanced Settings.
- Scroll down to the Deploy Plugin section and click Choose File.
- Upload the akto.hpi file and wait for the plugin to install.
The akto plugin can be used in a freestyle project by selecting the akto plugin in the Post-build Actions dropdown box and then filling in the required inputs
The akto plugin supports pipelines and can be used in the following ways:
Declarative syntax:
node {
akto aktoApiKey: 'AKTO_API_KEY', aktoDashboardUrl: 'AKTO_DASHBOARD_URL', aktoTestId: 'AKTO_TEST_ID', aktoStartTestDelay: 'AKTO_START_TEST_DELAY'
}
Scripted syntax:
pipeline {
agent any
stages {
stage('Build') {
steps {
// build steps go here
}
}
}
post {
akto aktoApiKey: 'AKTO_API_KEY', aktoDashboardUrl: 'AKTO_DASHBOARD_URL', aktoTestId: 'AKTO_TEST_ID', aktoStartTestDelay: 'AKTO_START_TEST_DELAY'
}
}