Skip to content

Commit

Permalink
fix: fix create pipeline error
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh1028 committed Feb 13, 2020
1 parent addefd6 commit eca3749
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stores/devops/pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ export default class PipelineStore extends BaseStore {

@action
async createPipeline(data) {
this.pipelineConfig = data
return await this.request.post(
`kapis/devops.kubesphere.io/v1alpha2/devops/${data.project_id}/pipelines`,
data
Expand All @@ -393,7 +394,7 @@ export default class PipelineStore extends BaseStore {

@action
updateJenkinsFile(jenkinsFile, params) {
this.pipelineConfig.pipeline.jenkinsfile = jenkinsFile
set(this.pipelineConfig, 'pipeline.jenkinsfile', jenkinsFile)
return this.updatePipeline(this.pipelineConfig, params)
}

Expand Down

0 comments on commit eca3749

Please sign in to comment.