-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines-fbtu.yml
85 lines (75 loc) · 3.59 KB
/
azure-pipelines-fbtu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Run FortifyBugTrackerUtility on a schedule
name: Daily-FTBU
trigger:
- main
schedules:
- cron: "0 2 * * *"
displayName: Daily Build
branches:
include:
- main
always: true
variables:
#
# In order for the pipeline to execute successfully you should create and set the following variables in the Pipeline UI.
#
# For FoD:
# FOD_BASE_URL - FoD Base Url, e.g. "https://ams.fortify.com"
# FOD_API_URL - FoD API URL, e.g. "https://api.ams.fortify.com"
# FOD_TENANT - FoD Tenant Name
# FOD_CLIENT_ID - FoD API Client Id
# FOD_CLIENT_SECRET - FoD API Client Secret
#
# For Octane/ValueEdge
# OCTANE_WORKSPACES - List of target ALM Octane/ValueEdge workspaces
# and the below if FortifyBugTrackerUtility is used:
# OCTANE_BASE_URL - ALM Octane/ValueEdge Base Url, e.g. "https://almoctane-ams.saas.microfocus.com/"
# OCTANE_CLIENT_ID - ALM Octane/ValueEdge API Client Id
# OCTANE_CLIENT_SECRET - ALM Octane/ValueEdge API Client Secret
# OCTANE_SHARED_SPACE_ID - ALM Octane/ValueEdge Shared Space Id
# OCTANE_WORKSPACE_ID - ALM Octane/ValueEdge Shared SpaceWorkspace Id
#
# The pipeline job templates make use of the Fortify CLI tool (https://github.com/fortify/fcli) and Debricked CLI tool (https://github.com/debricked/cli)
# There are tasks which make use of preview extensions (not published to the Azure DevOps marketplace) to install these tools included, e.g.:
# - FcliInstaller - https://github.com/fortify-presales/azure-pipelines-fcli-tasks
# - DebrickedInstaller - https://github.com/fortify-presales/azure-pipelines-debricked-tasks
# Follow the instructions on the GitHub repos to install these extensions.
# If you are using a self-hosted agent you can install the fcli and debricked tools yourselves, add to the path and comment out the these extension tasks.
#
# IMPORTANT: if using a self-hosted agent, please ensure a Java 17x64 SDK is installed and the environment variable JAVA_HOME_17_X64 is set to its location
#
# By default the FoD/SSC application name is set to the name of the Git repository
# If you wish to override any of these please set the following variables from the pipelines UI:
#
# FORTIFY_APP_NAME_OVERRIDE
# FORTIFY_RELEASE_NAME_OVERRIDE
#
- name: FORTIFY_APP_NAME
value: $(Build.Repository.Name)
- name: FORTIFY_RELEASE_NAME
value: $[replace(variables['Build.SourceBranch'], 'refs/heads/', '')]
stages:
#
# Create and synchronize FoD Issues to ALM Octane/ValueEdge
#
- stage: FoD_Issues_To_Octane
displayName: 'FoD Issues to Octane'
jobs:
- template: '.azure-pipelines/templates/fod-to-octane.yml'
parameters:
workingDirectory: '.' # could be project directory with specific config file
fodBaseUrl: $(FOD_BASE_URL)
fodTenant: $(FOD_TENANT)
fodClientId: $(FOD_CLIENT_ID)
fodClientSecret: $(FOD_CLIENT_SECRET)
fodAppName: "$(FORTIFY_APP_NAME)"
fodReleaseName: "$(FORTIFY_RELEASE_NAME)"
octaneBaseUrl: $(OCTANE_BASE_URL)
octaneSharedSpaceId: $(OCTANE_SHARED_SPACE_ID)
octaneWorkspaceId: $(OCTANE_WORKSPACE_ID)
octaneClientId: $(OCTANE_CLIENT_ID)
octaneClientSecret: $(OCTANE_CLIENT_SECRET)
configFile: 'FoDToOctane-ALL.xml'
pool:
name: 'FortifyPreSales' # use named self-hosted pool
#vmImage: 'windows-2022' # or uncomment to use Azure Devops cloud-hosted pool