Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
B
bs-utils-tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
bs-utils-tools
Commits
99f3b3bd
Commit
99f3b3bd
authored
Feb 03, 2025
by
Krit Punpreuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
bb5e3a10
Pipeline
#1533
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
add_jobs.sh
add_jobs.sh
+12
-0
No files found.
add_jobs.sh
0 → 100644
View file @
99f3b3bd
#!/bin/bash
BIGSTREAM_CONTROL_API
=
"http://control_api:19980/v1.2/"
echo
"------------------------------------------------"
echo
"BIGSTREAM_CONTROL_API:
${
BIGSTREAM_CONTROL_API
}
"
for
file
in
job/
*
.json
;
do
curl
-X
POST
--data
@
"
$file
"
-H
"Content-Type:application/json"
"
${
BIGSTREAM_CONTROL_API
}
/jobs?reload=true"
-w
" <<< file:
$file
\n
"
done
echo
"Current job list: "
curl
-X
GET
"
$BIGSTREAM_CONTROL_API
/jobs"
-w
"
\n
"
echo
"------------------------------------------------"
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