@Mojo(name="devops",
requiresProject=false)
public class DevOpsMojo
extends AbstractNamespacedMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
basedir
the current folder
|
protected String |
branch
the gogs branch to find the fabric8.yml if this goal is run outside of the source code
|
protected String |
buildImageStream
the build image stream name
|
protected String |
buildImageTag
the build image stream tag
|
protected String |
fullName |
protected String |
gitUrl |
protected String |
jenkinsJob
The name of the jenkins job to link to as the first job in the pipeline
|
protected String |
jenkinsMonitorView
The name of the jenkins monitor view
|
protected String |
jenkinsPipelineView
The name of the jenkins pipline view
|
protected boolean |
letschatEnabled
Should we enable LetsChat integration if the
LetsChatKubernetes.LETSCHAT_HUBOT_TOKEN environment variable is enabled |
protected String |
letschatRoomExpression
The expression used to define the room name for this project; using expressions like
${namespace} or ${repoName} to replace project specific values |
protected String |
letschatRoomLinkLabel
The label for the chat room page
|
protected String |
password
the gogs password
|
protected String |
repoName |
protected String |
secret
The webhook secret used for generic and github webhooks
|
protected boolean |
taigaAutoCreate
Should we auto-create projects in taiga if they are missing?
|
protected boolean |
taigaEnabled
Should we enable Taiga integration
|
protected String |
taigaProjectLinkLabel
The label for the issue tracker/kanban/scrum taiga project link
|
protected String |
taigaProjectLinkPage
The project page to link to
|
protected String |
taigaProjectName
The name of the taiga project name to use
|
protected String |
taigaProjectSlug
The slug name of the project in Taiga or will be auto-generated from the user and project name if not configured
|
protected String |
taigaTeamLinkLabel
The label for the team page
|
protected String |
taigaTeamLinkPage
The team page to link to
|
protected String |
username
the gogs user name to use
|
failOnError, recreate, routeDomain| Constructor and Description |
|---|
DevOpsMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
createController, findProjectConfig, getKubernetes, getNamespace, getNamespaceForEnvironment, getProject, getRootProject, getRootProjectFolder, getRouteDomain, isFailOnError, isRecreate, setFailOnError, setNamespace, setRecreate, setRouteDomain@Parameter(defaultValue="${basedir}")
protected File basedir
@Parameter(property="fabric8.gogsUsername") protected String username
@Parameter(property="fabric8.gogsPassword") protected String password
@Parameter(property="fabric8.gogsBranch",
defaultValue="master")
protected String branch
@Parameter(property="fabric8.repoName",
defaultValue="${project.artifactId}")
protected String repoName
@Parameter(property="fabric8.fullName") protected String fullName
@Parameter(property="fabric8.gitUrl") protected String gitUrl
@Parameter(property="fabric8.webhookSecret",
defaultValue="secret101")
protected String secret
@Parameter(property="fabric8.buildImageStream",
defaultValue="triggerJenkins")
protected String buildImageStream
@Parameter(property="fabric8.buildImageTag",
defaultValue="latest")
protected String buildImageTag
@Parameter(property="fabric8.jenkinsJob") protected String jenkinsJob
@Parameter(property="fabric8.jenkinsMonitorView") protected String jenkinsMonitorView
@Parameter(property="fabric8.jenkinsPipelineView") protected String jenkinsPipelineView
@Parameter(property="fabric8.tagiaProjectName",
defaultValue="${fabric8.repoName}")
protected String taigaProjectName
@Parameter(property="fabric8.taigaProjectSlug") protected String taigaProjectSlug
@Parameter(property="fabric8.taigaProjectLinkPage",
defaultValue="backlog")
protected String taigaProjectLinkPage
@Parameter(property="fabric8.taigaProjectLinkLabel",
defaultValue="Backlog")
protected String taigaProjectLinkLabel
@Parameter(property="fabric8.taigaTeamLinkPage",
defaultValue="team")
protected String taigaTeamLinkPage
@Parameter(property="fabric8.taigaTeamLinkLabel",
defaultValue="Team")
protected String taigaTeamLinkLabel
@Parameter(property="fabric8.taigaAutoCreate",
defaultValue="true")
protected boolean taigaAutoCreate
@Parameter(property="fabric8.taigaEnabled",
defaultValue="true")
protected boolean taigaEnabled
@Parameter(property="fabric8.letschatEnabled",
defaultValue="true")
protected boolean letschatEnabled
LetsChatKubernetes.LETSCHAT_HUBOT_TOKEN environment variable is enabled@Parameter(property="fabric8.letschatRoomLinkLabel",
defaultValue="Room")
protected String letschatRoomLinkLabel
@Parameter(property="fabric8.letschatRoomLinkLabel",
defaultValue="fabric8_${namespace}")
protected String letschatRoomExpression
${namespace} or ${repoName} to replace project specific valuesCopyright © 2011–2016 Red Hat. All rights reserved.