diff --git a/ci/azure/azure-clang-3.9-ubuntu-mpich.yml b/ci/azure/azure-clang-3.9-ubuntu-mpich.yml index dd83b31508..7a84e7ac28 100644 --- a/ci/azure/azure-clang-3.9-ubuntu-mpich.yml +++ b/ci/azure/azure-clang-3.9-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-clang-5.0-ubuntu-mpich.yml b/ci/azure/azure-clang-5.0-ubuntu-mpich.yml index a21b798a25..edfd2fb2e3 100644 --- a/ci/azure/azure-clang-5.0-ubuntu-mpich.yml +++ b/ci/azure/azure-clang-5.0-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-clang-8-alpine-mpich.yml b/ci/azure/azure-clang-8-alpine-mpich.yml index 938b1c32c9..d1393ed16c 100644 --- a/ci/azure/azure-clang-8-alpine-mpich.yml +++ b/ci/azure/azure-clang-8-alpine-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run alpine-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-gcc-10-ubuntu-openmpi.yml b/ci/azure/azure-gcc-10-ubuntu-openmpi.yml index 425953c588..78bd036413 100644 --- a/ci/azure/azure-gcc-10-ubuntu-openmpi.yml +++ b/ci/azure/azure-gcc-10-ubuntu-openmpi.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean-openmpi' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-gcc-5-ubuntu-mpich.yml b/ci/azure/azure-gcc-5-ubuntu-mpich.yml index 6fccb76945..c4d2640d92 100644 --- a/ci/azure/azure-gcc-5-ubuntu-mpich.yml +++ b/ci/azure/azure-gcc-5-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-gcc-6-ubuntu-mpich.yml b/ci/azure/azure-gcc-6-ubuntu-mpich.yml index f9da9f6354..7ce90bbdc2 100644 --- a/ci/azure/azure-gcc-6-ubuntu-mpich.yml +++ b/ci/azure/azure-gcc-6-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-gcc-7-ubuntu-mpich.yml b/ci/azure/azure-gcc-7-ubuntu-mpich.yml index 73833bbeb6..b7a224ed88 100644 --- a/ci/azure/azure-gcc-7-ubuntu-mpich.yml +++ b/ci/azure/azure-gcc-7-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-gcc-8-ubuntu-mpich.yml b/ci/azure/azure-gcc-8-ubuntu-mpich.yml index a43c6de344..9257c8f927 100644 --- a/ci/azure/azure-gcc-8-ubuntu-mpich.yml +++ b/ci/azure/azure-gcc-8-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-gcc-9-ubuntu-mpich.yml b/ci/azure/azure-gcc-9-ubuntu-mpich.yml index 2b915ba2ec..6447e3e83a 100644 --- a/ci/azure/azure-gcc-9-ubuntu-mpich.yml +++ b/ci/azure/azure-gcc-9-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-intel-18-ubuntu-mpich-extended.yml b/ci/azure/azure-intel-18-ubuntu-mpich-extended.yml index c86ac1fd2a..6edf1d57db 100644 --- a/ci/azure/azure-intel-18-ubuntu-mpich-extended.yml +++ b/ci/azure/azure-intel-18-ubuntu-mpich-extended.yml @@ -113,7 +113,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -147,7 +147,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-intel-18-ubuntu-mpich.yml b/ci/azure/azure-intel-18-ubuntu-mpich.yml index 8a5390c31c..2cbea8e13e 100644 --- a/ci/azure/azure-intel-18-ubuntu-mpich.yml +++ b/ci/azure/azure-intel-18-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-intel-19-ubuntu-mpich.yml b/ci/azure/azure-intel-19-ubuntu-mpich.yml index 77c7371758..de04804347 100644 --- a/ci/azure/azure-intel-19-ubuntu-mpich.yml +++ b/ci/azure/azure-intel-19-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-nvidia-10-ubuntu-mpich-extended.yml b/ci/azure/azure-nvidia-10-ubuntu-mpich-extended.yml index f0728cced0..de2bdc1a1e 100644 --- a/ci/azure/azure-nvidia-10-ubuntu-mpich-extended.yml +++ b/ci/azure/azure-nvidia-10-ubuntu-mpich-extended.yml @@ -113,7 +113,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -147,7 +147,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-nvidia-10-ubuntu-mpich.yml b/ci/azure/azure-nvidia-10-ubuntu-mpich.yml index 9da75333cb..2fe837f7c5 100644 --- a/ci/azure/azure-nvidia-10-ubuntu-mpich.yml +++ b/ci/azure/azure-nvidia-10-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-nvidia-11-ubuntu-mpich-extended.yml b/ci/azure/azure-nvidia-11-ubuntu-mpich-extended.yml index 420efb20d0..356099d4cd 100644 --- a/ci/azure/azure-nvidia-11-ubuntu-mpich-extended.yml +++ b/ci/azure/azure-nvidia-11-ubuntu-mpich-extended.yml @@ -113,7 +113,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -147,7 +147,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/ci/azure/azure-nvidia-11-ubuntu-mpich.yml b/ci/azure/azure-nvidia-11-ubuntu-mpich.yml index 7d3c514ad6..fed44d59d6 100644 --- a/ci/azure/azure-nvidia-11-ubuntu-mpich.yml +++ b/ci/azure/azure-nvidia-11-ubuntu-mpich.yml @@ -119,7 +119,7 @@ stages: dockerComposeCommand: 'run ubuntu-cpp-clean' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -153,7 +153,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name) diff --git a/scripts/azure-workflow-template.yml b/scripts/azure-workflow-template.yml index 91634d92d2..59ea57c0c6 100644 --- a/scripts/azure-workflow-template.yml +++ b/scripts/azure-workflow-template.yml @@ -109,7 +109,7 @@ stages: dockerComposeCommand: 'run [% docker_target %]' - task: Bash@3 displayName: Prepare comment with compilation errors and warnings - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')) inputs: targetType: 'inline' # Maximum length of the comment body is 65536 characters. @@ -143,7 +143,7 @@ stages: echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body" - task: GitHubComment@0 displayName: Put warnings and errors in PR comment - condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], '')) + condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], ''))) inputs: gitHubConnection: 'DARMA-tasking' repositoryName: $(Build.Repository.Name)