Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a4bcf7ab
Commit
a4bcf7ab
authored
Mar 17, 2021
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add created_at to job webhooks
Update docs and specs
parent
b8592751
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
changelogs/unreleased/232887-add-created_at-to-job-webhooks.yml
...logs/unreleased/232887-add-created_at-to-job-webhooks.yml
+5
-0
doc/user/project/integrations/webhooks.md
doc/user/project/integrations/webhooks.md
+1
-0
lib/gitlab/data_builder/build.rb
lib/gitlab/data_builder/build.rb
+1
-0
spec/lib/gitlab/data_builder/build_spec.rb
spec/lib/gitlab/data_builder/build_spec.rb
+3
-0
No files found.
changelogs/unreleased/232887-add-created_at-to-job-webhooks.yml
0 → 100644
View file @
a4bcf7ab
---
title
:
Add created_at to job webhooks
merge_request
:
56835
author
:
type
:
changed
doc/user/project/integrations/webhooks.md
View file @
a4bcf7ab
...
...
@@ -1297,6 +1297,7 @@ X-Gitlab-Event: Job Hook
"build_name"
:
"test"
,
"build_stage"
:
"test"
,
"build_status"
:
"created"
,
"build_created_at"
:
"2021-02-23T02:41:37.886Z"
,
"build_started_at"
:
null
,
"build_finished_at"
:
null
,
"build_duration"
:
null
,
...
...
lib/gitlab/data_builder/build.rb
View file @
a4bcf7ab
...
...
@@ -26,6 +26,7 @@ module Gitlab
build_name:
build
.
name
,
build_stage:
build
.
stage
,
build_status:
build
.
status
,
build_created_at:
build
.
created_at
,
build_started_at:
build
.
started_at
,
build_finished_at:
build
.
finished_at
,
build_duration:
build
.
duration
,
...
...
spec/lib/gitlab/data_builder/build_spec.rb
View file @
a4bcf7ab
...
...
@@ -19,6 +19,9 @@ RSpec.describe Gitlab::DataBuilder::Build do
it
{
expect
(
data
[
:tag
]).
to
eq
(
build
.
tag
)
}
it
{
expect
(
data
[
:build_id
]).
to
eq
(
build
.
id
)
}
it
{
expect
(
data
[
:build_status
]).
to
eq
(
build
.
status
)
}
it
{
expect
(
data
[
:build_created_at
]).
to
eq
(
build
.
created_at
)
}
it
{
expect
(
data
[
:build_started_at
]).
to
eq
(
build
.
started_at
)
}
it
{
expect
(
data
[
:build_finished_at
]).
to
eq
(
build
.
finished_at
)
}
it
{
expect
(
data
[
:build_allow_failure
]).
to
eq
(
false
)
}
it
{
expect
(
data
[
:build_failure_reason
]).
to
eq
(
build
.
failure_reason
)
}
it
{
expect
(
data
[
:project_id
]).
to
eq
(
build
.
project
.
id
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment