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
38badda5
Commit
38badda5
authored
Apr 12, 2021
by
Priyan Sureshbabu
Committed by
Marcel Amirault
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructions about running pipeline schedules through rails console
parent
b6cc6413
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
...dministration/troubleshooting/gitlab_rails_cheat_sheet.md
+15
-0
No files found.
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
View file @
38badda5
...
...
@@ -762,6 +762,21 @@ end
Gitlab
::
CurrentSettings
.
current_application_settings
.
runners_registration_token
```
### Run pipeline schedules manually
You can run pipeline schedules manually through the Rails console to reveal any errors that are usually not visible.
```
ruby
# schedule_id can be obtained from Edit Pipeline Schedule page
schedule
=
Ci
::
PipelineSchedule
.
find_by
(
id:
<
schedule_id
>
)
# Select the user that you want to run the schedule for
user
=
User
.
find_by_username
(
'<username>'
)
# Run the schedule
ps
=
Ci
::
CreatePipelineService
.
new
(
schedule
.
project
,
user
,
ref:
schedule
.
ref
).
execute!
(
:schedule
,
ignore_skip_ci:
true
,
save_on_errors:
false
,
schedule:
schedule
)
```
## License
### See current license information
...
...
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