Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gitlab-ci Timestamp variables #1112

Open
nolange opened this issue Feb 21, 2024 · 0 comments
Open

Support gitlab-ci Timestamp variables #1112

nolange opened this issue Feb 21, 2024 · 0 comments
Labels
feature Feature missing according to gitlab ci standard

Comments

@nolange
Copy link

nolange commented Feb 21, 2024

Minimal .gitlab-ci.yml illustrating the issue

---
job:
  script:
    - echo "$CI_COMMIT_TIMESTAMP"
    - echo "$CI_PIPELINE_CREATED_AT"
    - echo "$CI_JOB_STARTED_AT"

Expected behavior

Output like:

2022-11-22T16:19:31+01:00
2022-11-22T16:19:32+01:00
2022-11-22T16:19:32+01:00

Host information
Debian 12 "Bookworm", x86-64
gitlab-ci-local 4.46.0

Containerd binary
podman

Additional context

Those variables are often used for reproducible builds and stored as meta-information for future reference.
Please add support for them

@firecow firecow added the feature Feature missing according to gitlab ci standard label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature missing according to gitlab ci standard
Projects
None yet
Development

No branches or pull requests

2 participants