After you obtained the API integration key and completed project and branch creation, next is to seamlessly integrate ArmourZero's AI-powered Code Scan into your Jenkins.
Integration guide
1. Go to Code menu and click "Integrate" button.
2. Here you can also able to obtain your API Key by clicking Copy API Key.
3. Manage Credentials in your Jenkins repository.
Go to your Jenkins portal → Manage Jenkins → Credentials. Select the appropriate domain (usually (global)) where you want to store the credential. Make sure you have admin rights.
4. Follow this video to add Credential in your Jenkins repository.
Add a new credential with:
Kind: Secret text
Secret: your ArmourZero API key
ID: AZ_Token
5. Navigate to Job
Go to your Jenkins portal and create a new Freestyle Job or edit an existing one.
6. Follow this video to Build Environment in your Jenkins repository.
Under Build Environment, check Use secret text(s) or file(s). Bind the credential AZ_TOKEN → to variable name AZ_API_KEY.
6: Follow this video to add Build Steps in your Jenkins repository.
Scroll to the Build section and click Add build step → Execute Shell.
7: Paste build scripts.
Copy the following script into the command box.
8: Save the job and trigger a build.