mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 07:19:20 +01:00
feat(alias): pass task alias to remote runner
This commit is contained in:
parent
3c3da0bacb
commit
aecff7892e
@ -65,6 +65,7 @@ func GetRunner(w http.ResponseWriter, r *http.Request) {
|
||||
data.NewJobs = append(data.NewJobs, runners.JobData{
|
||||
Username: tsk.Username,
|
||||
IncomingVersion: tsk.IncomingVersion,
|
||||
Alias: tsk.Alias,
|
||||
Task: tsk.Task,
|
||||
Template: tsk.Template,
|
||||
Inventory: tsk.Inventory,
|
||||
|
@ -11,6 +11,7 @@ import (
|
||||
type JobData struct {
|
||||
Username string
|
||||
IncomingVersion *string
|
||||
Alias string
|
||||
Task db.Task `json:"task" binding:"required"`
|
||||
Template db.Template `json:"template" binding:"required"`
|
||||
Inventory db.Inventory `json:"inventory" binding:"required"`
|
||||
|
Loading…
Reference in New Issue
Block a user