Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api,ui): add run conditions on hook" #4654

Merged
merged 9 commits into from
Oct 8, 2019
Merged

feat(api,ui): add run conditions on hook" #4654

merged 9 commits into from
Oct 8, 2019

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented Oct 7, 2019

  1. Description
  2. Related issues
    close feat(api,ui): condition on hook catched by hook service #4591
  3. About tests
  4. Mentions

@ovh/cds

ui/src/assets/i18n/fr.json Outdated Show resolved Hide resolved
ui/src/assets/i18n/en.json Outdated Show resolved Hide resolved
@@ -845,6 +846,38 @@ func (api *API) postWorkflowRunHandler() service.Handler {
}
}

// To handle conditon on hooks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

condition

@@ -27,3 +27,15 @@ export class VariableAudit {
versionned: Date;
author; string;
}

export let GitVariables = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused?

bnjjj and others added 2 commits October 7, 2019 18:05
s := sdk.NewStage("stage 1")
s.Enabled = true
s.PipelineID = pip.ID
pipeline.InsertStage(api.mustDB(), s)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertStage is not checked (from errcheck)

Enabled: true,
},
}
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertJob is not checked (from errcheck)

s = sdk.NewStage("stage 1")
s.Enabled = true
s.PipelineID = pip2.ID
pipeline.InsertStage(api.mustDB(), s)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertStage is not checked (from errcheck)

Enabled: true,
},
}
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip2)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertJob is not checked (from errcheck)

s := sdk.NewStage("stage 1")
s.Enabled = true
s.PipelineID = pip.ID
pipeline.InsertStage(api.mustDB(), s)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertStage is not checked (from errcheck)

Enabled: true,
},
}
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertJob is not checked (from errcheck)

s = sdk.NewStage("stage 1")
s.Enabled = true
s.PipelineID = pip2.ID
pipeline.InsertStage(api.mustDB(), s)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertStage is not checked (from errcheck)

Enabled: true,
},
}
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip2)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of pipeline.InsertJob is not checked (from errcheck)

@sguiheux sguiheux merged commit bef82cb into master Oct 8, 2019
@bnjjj bnjjj deleted the feat_4591 branch October 16, 2019 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(api,ui): condition on hook catched by hook service
5 participants