Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
ci: add timestamp to artifact names (#941)
Browse files Browse the repository at this point in the history
* ci: add timestamp to artifact names

* set variable in script

* try a counter

* set timestamp var using date

* double quotes
  • Loading branch information
Cecile Robert-Michon authored and acs-bot committed Apr 4, 2019
1 parent f559208 commit 5066abf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .pipelines/e2e-step-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ steps:
displayName: compile
workingDirectory: $(modulePath)
- script: |
DATE=$(date +%s)
echo "##vso[task.setvariable variable=timestamp]$DATE"
export CLIENT_ID=$(SERVICE_PRINCIPAL_CLIENT_ID_E2E_KUBERNETES)
export CLIENT_SECRET=$(SERVICE_PRINCIPAL_CLIENT_SECRET_E2E_KUBERNETES)
export CLIENT_OBJECTID=$(SERVICE_PRINCIPAL_OBJECT_ID_E2E_KUBERNETES)
Expand All @@ -23,6 +25,6 @@ steps:
workingDirectory: $(modulePath)
- task: PublishPipelineArtifact@0
inputs:
artifactName: '${{ parameters.job }}_logs'
artifactName: '${{ parameters.job }}-$(timestamp)_logs'
targetPath: '$(modulePath)/_logs'
condition: always()

0 comments on commit 5066abf

Please sign in to comment.