From 7821fadc1dec45cde866b19ec3d62e74cff3dc58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Za=C5=84?= Date: Fri, 24 Apr 2026 16:27:25 +0200 Subject: [PATCH] Fixed unavailable build time. --- .changelog/20260424154037_ck_20081.md | 9 +++++++++ packages/ckeditor5-dev-ci/bin/notify-circle-status.js | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changelog/20260424154037_ck_20081.md diff --git a/.changelog/20260424154037_ck_20081.md b/.changelog/20260424154037_ck_20081.md new file mode 100644 index 000000000..dfdba7591 --- /dev/null +++ b/.changelog/20260424154037_ck_20081.md @@ -0,0 +1,9 @@ +--- +type: Fix +scope: + - ckeditor5-dev-ci +closes: + - ckeditor/ckeditor5#20081 +--- + +Fixed `ckeditor5-dev-ci-notify-circle-status` reporting "Build time: Unavailable." in Slack notifications. The CircleCI job API was called with a pipeline number instead of a job number, so the request did not return a valid `started_at` timestamp. diff --git a/packages/ckeditor5-dev-ci/bin/notify-circle-status.js b/packages/ckeditor5-dev-ci/bin/notify-circle-status.js index 9a9c9d32b..91eb00420 100755 --- a/packages/ckeditor5-dev-ci/bin/notify-circle-status.js +++ b/packages/ckeditor5-dev-ci/bin/notify-circle-status.js @@ -33,6 +33,7 @@ const { // Variables that are available by default in Circle environment. CIRCLE_BRANCH, + CIRCLE_BUILD_NUM, CIRCLE_PROJECT_REPONAME, CIRCLE_PROJECT_USERNAME, CIRCLE_SHA1, @@ -126,7 +127,7 @@ async function getJobData() { CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, 'job', - cliArguments[ 'pipeline-id' ] + CIRCLE_BUILD_NUM ].join( '/' ); const fetchOptions = {