Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Commit

Permalink
add seed project role (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
runzexia committed Apr 13, 2019
1 parent f7a05b6 commit 03b00cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/ds/ds.go
Expand Up @@ -77,6 +77,13 @@ func (p *Ds) connectJenkins() {
panic(err)
}
}
_, err = jenkins.AddProjectRole(constants.JenkinsAllUserRoleName, "\\n\\s*\\r", gojenkins.ProjectPermissionIds{
SCMTag: true,
}, true)
if err != nil {
logger.Critical("failed to create jenkins project role")
panic(err)
}

}

Expand Down

0 comments on commit 03b00cc

Please sign in to comment.