apparently you NEED a stage

This commit is contained in:
Carlos Zamora 2021-06-11 17:06:12 -07:00
parent 74bcb1c6b8
commit 7611c6cf02

View file

@ -15,32 +15,35 @@ pr: none
# 0.0.1904.0900
name: 0.0.$(Date:yyMM).$(Date:dd)$(Rev:rr)
jobs:
- job: OneFuzz
displayName: OneFuzz
dependsOn: []
condition: succeeded()
pool:
vmImage: 'ubuntu-latest'
steps:
- template: ./templates/build-console-fuzzing.yml
parameters:
platform: x64
- task: UsePythonVersion@0
displayName: Setup Python Env
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
- bash: |
set -ex
pip -q install onefuzz
onefuzz config --endpoint $(endpoint) --client_id $(client_id) --client_secret $(client_secret)
onefuzz template libfuzzer basic OpenConsole WriteCharsLegacy $GITHUB_SHA windows --target_exe bin\\x64\\Fuzzing\\OpenConsoleFuzzer.exe
displayName: Submit OneFuzz Job
env:
client_id: client_id
client_secret: client_secret
stages:
- stage: OneFuzz_Stage
displayName: OneFuzz Stage
dependsOn: []
condition: succeeded()
jobs:
- job: OneFuzz Job
displayName: OneFuzz Job
pool:
vmImage: 'ubuntu-latest'
steps:
- template: ./templates/build-console-fuzzing.yml
parameters:
platform: x64
- task: UsePythonVersion@0
displayName: Setup Python Env
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
- bash: |
set -ex
pip -q install onefuzz
onefuzz config --endpoint $(endpoint) --client_id $(client_id) --client_secret $(client_secret)
onefuzz template libfuzzer basic OpenConsole WriteCharsLegacy $GITHUB_SHA windows --target_exe bin\\x64\\Fuzzing\\OpenConsoleFuzzer.exe
displayName: Submit OneFuzz Job
env:
client_id: client_id
client_secret: client_secret
# How to use onefuzz cli:
# command: onefuzz template libfuzzer basic <project> <name> <build> <pool> --target_exe <exe_path>