Skip to content

Commit

Permalink
#2174: update azure pipelines after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly authored and cz4rs committed Sep 20, 2024
1 parent a7b564c commit e3954d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions ci/azure/azure-gcc-10-ubuntu-openmpi-spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ variables:
VT_INCLUSION: TPL
VT_DEBUG_VERBOSE: 0
VT_KOKKOS_ENABLED: 0
VT_TV_ENABLED: 0
CMAKE_CXX_STANDARD: 17
VT_CI_TEST_LB_SCHEMA: 0
RUN_FULL_CI: false
Expand Down
14 changes: 8 additions & 6 deletions ci/azure/azure-gcc-12-ubuntu-vttv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ variables:
VT_TV_ENABLED: 1
CMAKE_CXX_STANDARD: 17
VT_CI_TEST_LB_SCHEMA: 0
RUN_FULL_CI: true
CACHE: "$(Agent.TempDirectory)/cache/"
cache_name: ubuntu-gcc-12-cache
volume_name: ubuntu-cpp
Expand All @@ -85,6 +86,7 @@ stages:
- task: Bash@3
displayName: Build timestamp for caching
continueOnError: true
condition: eq(variables['RUN_FULL_CI'], 'true')
inputs:
targetType: 'inline'
script: |
Expand All @@ -107,14 +109,14 @@ stages:
- task: Bash@3
displayName: Output timestamp for caching
continueOnError: true
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues')
condition: and(eq(variables['RUN_FULL_CI'], 'true'), in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'))
inputs:
targetType: 'inline'
script: 'echo "my pipeline variable is $(TS) $(TS_YEAR) $(TS_MONTH) $(TS_DAY)"'
- task: Cache@2
displayName: Update cache
continueOnError: true
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues')
condition: and(eq(variables['RUN_FULL_CI'], 'true'), in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'))
inputs:
securityNamespace: cache
key: $(Agent.OS) | "$(cache_name)" | $(TS_YEAR) | $(TS_MONTH) | $(TS_DAY) | $(TS)
Expand Down Expand Up @@ -153,7 +155,7 @@ stages:
- task: Bash@3
displayName: Put compilation's and tests' logs in PR comment
continueOnError: true
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
condition: and(eq(variables['RUN_FULL_CI'], 'true'), and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest')))
inputs:
targetType: 'inline'
script: |
Expand Down Expand Up @@ -183,7 +185,7 @@ stages:
- task: Bash@3
displayName: Create artifacts
continueOnError: true
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues')
condition: and(eq(variables['RUN_FULL_CI'], 'true'), in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'))
inputs:
targetType: 'inline'
script: |
Expand All @@ -192,15 +194,15 @@ stages:
- task: PublishPipelineArtifact@1
displayName: Upload CMake test output artifact
continueOnError: true
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues')
condition: and(eq(variables['RUN_FULL_CI'], 'true'), in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'))
inputs:
targetPath: '$(Agent.TempDirectory)/LastTest.log.gz'
artifact: 'CMakeLastTestLog'
publishLocation: 'pipeline'
- task: PublishPipelineArtifact@1
displayName: Upload CMake full output artifact
continueOnError: true
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues')
condition: and(eq(variables['RUN_FULL_CI'], 'true'), in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'))
inputs:
targetPath: '$(Agent.TempDirectory)/cmake-output.log.gz'
artifact: 'CMakeOutputLog'
Expand Down

0 comments on commit e3954d5

Please sign in to comment.