We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c7b82 commit 23327a7Copy full SHA for 23327a7
.gitlab_ci/_templates.yml
@@ -61,7 +61,7 @@ variables:
61
script:
62
- *docker-gitlab-login
63
# Remove the UTC offset, not supported by `date` in docker image (busybox)
64
- - export CLEAN_DATETIME=$(echo "$CI_COMMIT_TIMESTAMP" | sed 's/+00:00//' | sed 's/Z//')
+ - export CLEAN_DATETIME=$(echo "$CI_JOB_STARTED_AT" | sed 's/+00:00//' | sed 's/Z//')
65
# Transform in unix timestamp
66
- export UNIX_TIMESTAMP=$(date -d "$CLEAN_DATETIME" -D "%Y-%m-%dT%H:%M:%S" +%s)
67
- echo "Unix timestamp - $UNIX_TIMESTAMP"
0 commit comments