Skip to content

Commit

Permalink
Update dotnetcore_build_publish_job.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JFolberth authored Mar 27, 2024
1 parent 2b77d90 commit 6379d78
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions jobs/dotnetcore_build_publish_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ parameters:
publishArguments: ''
sdkVersion: ''
startUpProjectName: ''
GHAzDOEnabled: true

jobs:
- job: build_publish_${{parameters.projectName}}
Expand All @@ -30,11 +31,10 @@ jobs:
parameters:
sdkVersion: ${{ parameters.sdkVersion }}
- template: ../tasks/nuget_auth_task.yml
- template: ../tasks/ado_ghazdo_codeql_init_task.yml
parameters:
languages: 'csharp'
#GHAzDOEnabled: ${{ variables.GHAzDOEnabled }}

- ${{ if eq(parameters.GHAzDOEnabled, true) }}:
- template: ../tasks/ado_ghazdo_codeql_init_task.yml
parameters:
languages: 'csharp'
- template: ../tasks/dotnetcore_cli_task.yml
parameters:
command: 'build'
Expand All @@ -46,10 +46,9 @@ jobs:
command: 'test'
projectPath: '${{ variables.testProjectPath }}/**/*.csproj'
arguments: '--configuration ${{ parameters.buildConfiguration }} --collect "Code coverage"'
- template: ../tasks/ado_ghazdo_dependency_scanning_task.yml
- template: ../tasks/ado_ghazdo_codeql_analyze_task.yml
parameters:
GHAzDOEnabled: $(GHAzDOCheck.GHAzDOEnabled)
- ${{ if eq(parameters.GHAzDOEnabled, true) }}:
- template: ../tasks/ado_ghazdo_dependency_scanning_task.yml
- template: ../tasks/ado_ghazdo_codeql_analyze_task.yml
- template: ../tasks/dotnetcore_cli_publish_task.yml
parameters:
zipAfterPublish: ${{ parameters.zipAfterPublish}}
Expand Down

0 comments on commit 6379d78

Please sign in to comment.