Creating an Integration
Add this integration by following steps on theManaging Pipelines Integrationspage.
Here is the information you need to create this integration:
- Name-- Choose a friendly name for the integration
- Platform URL-- The Platform URL is automatically added for the user adding the integration. If required, you can manually enter the HTTP Endpoint (URL) for your JFrog Platform.
- Access Token-- YourArtifactory API Key. You can automatically generate a token that represents the logged in user from theUser Profilepage, or you can follow theAccess Tokensdocumentation to create a more nuanced token with particular scopes.
Usage
With native steps: An Artifactory integration is mandatory in theintegrations
section of theTriggerPipelinenativestep:
Default Environment Variables
When you add this integration directly to a step, a set of environment variables is automatically made available.
Environment variable |
Description |
---|---|
int_ |
The API Endpointof the JFrog Platform |
int_ |
Thetokenusedto access the JFrog Platform |
Examples
pipelines: steps: - name: scan_controller type: TriggerPipeline configuration: pipelineName: steptarget stepName: scanIt integrations: - name: myPlatformToken environmentVariables: scan_target: default: "hello-world" allowCustom: true values: - "vault" - "redis" - "postgresql" execution: onStart: - set_trigger_payload pipelineVariables "scan_target=${scan_target}" - set_trigger_payload stepVariables "notify=email" "uploadReport=true" onComplete: - echo "Final status is $nested_run_status"