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

Helper step to get the current build time #1663

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

v1v
Copy link
Member

@v1v v1v commented Apr 20, 2022

What does this PR do?

Helper step to get the current build time with the format xs:datetime, for example 1980-03-23T10:20:15

Why is it important?

Avoid errors with the script approval

Related issues

Notifies elastic/beats#31355 elastic/elastic-package#792 elastic/integrations#3126

ITs

Given

@Library('apm@current') _

pipeline {
  agent any
  stages {
     stage('Echo') {
        steps {
           echo getCurrentBuildTime()
        }
     }
  }
}

produced

image

@v1v v1v added the enhancement New feature or request label Apr 20, 2022
@v1v v1v requested review from a team as code owners April 20, 2022 09:39
@botelastic botelastic bot added the groovy label Apr 20, 2022
@mergify mergify bot assigned v1v Apr 20, 2022
@apmmachine
Copy link
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-04-20T09:39:50.004+0000

  • Duration: 8 min 11 sec

Test stats 🧪

Test Results
Failed 0
Passed 1420
Skipped 2
Total 1422

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run infra tests : Run the test-infra test.

  • /test all : Re-trigger the build for all the stages.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify mergify bot merged commit d95c4f5 into elastic:main Apr 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants