Skip to content

Commit

Permalink
Update azure-pipelines.yml and added fortify post cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
samithaf committed Jun 5, 2024
1 parent 440a394 commit 42a66df
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,20 @@ stages:
inputs:
targetType: 'inline'
script: |
curl -${JFROG_USER}:${JFROG_TOKEN} -T $(Pipeline.Workspace)/drop/source.zip "${JFROG_URL}/gel-next/$(Build.BuildId)/source.zip"
curl -${JFROG_USER}:${JFROG_TOKEN} -T $(Pipeline.Workspace)/drop/source.zip "${JFROG_URL}/gel-next/0.0.$(Build.BuildId)/source.zip"
env:
JFROG_URL: $(JFROG_URL)
JFROG_USER: $(JFROG_USER)
JFROG_TOKEN: $(JFROG_TOKEN)
- task: Bash@3
inputs:
targetType: inline
script: |
curl -o /dev/null -w "%{response_code}" --request POST --url ${FORTIFY_URL} --header "Authorization: Basic ${FORTIFY_TOKEN}" --header "Content-Type: application/x-www-form-urlencoded" --data "APP_ID=${APP_ID}" --data "COMPONENT=GEL" --data "PJVERID=${FORTIFY_COMPONENT_PJVERID}" --data "EMAIL_ADDRESS=${FORTIFY_EMAIL}" --data "BUILD_LABEL=0.0.$(Build.BuildId)" --data "CODE_LANGUAGE=TypeScript" --data "BRANCH=main" --data "AF_LINK=${JFROG_URL}/gel-next/0.0.$(Build.BuildId)/source.zip"
env:
APP_ID: $(APP_ID)
FORTIFY_URL: $(FORTIFY_URL)
FORTIFY_TOKEN: $(FORTIFY_TOKEN)
FORTIFY_COMPONENT_PJVERID: $(FORTIFY_COMPONENT_PJVERID)
FORTIFY_EMAIL: $(FORTIFY_EMAIL)

0 comments on commit 42a66df

Please sign in to comment.