public class NewPipelineJob extends BaseJob
Constructor and Description |
---|
NewPipelineJob(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupProject()
Cleanup top-level project, as in delete
|
void |
create(boolean update)
Create the Pipeline Jenkinsfile script
|
protected hudson.model.Project |
createProject()
Create project
|
void |
doCreate(boolean update)
Add build steps
|
String |
getProjectName()
Get the name of the project
|
protected String |
getSharedArtifactDirectory()
Get getSharedArtifactDirectory
|
addArchiveArtifacts, addCredentialID, addDeleteWorkspaceBeforeBuildStarts, addJunit, addPCLintPlus, addSetup, addVCCoverage, getBaseName, getEnvironmentSetupUnix, getEnvironmentSetupWin, getEnvironmentTeardownUnix, getEnvironmentTeardownWin, getExecutePreambleUnix, getExecutePreambleWin, getInstance, getJobName, getManageProjectName, getNodeLabel, getOptionClean, getOptionErrorLevel, getOptionExecutionReport, getOptionHTMLBuildDesc, getOptionUseReporting, getPclpCommand, getPclpResultsPattern, getRequest, getResponse, getSquoreCommand, getTESTinsights_credentials_id, getTESTinsights_project, getTESTinsights_proxy, getTESTinsights_SCM_Tech, getTESTinsights_SCM_URL, getTESTinsights_URL, getTopProject, getUseCILicenses, getUseCILicensesUnix, getUseCILicensesWin, getWaitLoops, getWaitTime, isUsingSCM, setEnvironmentSetupUnix, setEnvironmentSetupWin, setEnvironmentTeardownUnix, setEnvironmentTeardownWin, setExecutePreambleUnix, setExecutePreambleWin, setOptionClean, setOptionErrorLevel, setOptionExecutionReport, setOptionHTMLBuildDesc, setOptionUseReporting, setTESTinsights_project, setTESTinsights_SCM_Tech, setTESTinsights_SCM_URL, setUseCILicenses, setUsingSCM, useSavedData
public NewPipelineJob(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws javax.servlet.ServletException, IOException, ScmConflictException
request
- request objectresponse
- response objectjavax.servlet.ServletException
- exceptionIOException
- exceptionScmConflictException
- exceptionpublic String getProjectName()
protected hudson.model.Project createProject() throws IOException, JobAlreadyExistsException
createProject
in class BaseJob
IOException
- exceptionJobAlreadyExistsException
- exceptionpublic void doCreate(boolean update) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException
doCreate
in class BaseJob
update
- true to update, false to notIOException
- exceptionjavax.servlet.ServletException
- exceptionhudson.model.Descriptor.FormException
- exceptionpublic void create(boolean update) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException, JobAlreadyExistsException, InvalidProjectFileException
create
in class BaseJob
update
- true/falseIOException
- exceptionjavax.servlet.ServletException
- exceptionhudson.model.Descriptor.FormException
- exceptionJobAlreadyExistsException
- exceptionInvalidProjectFileException
- exceptionprotected String getSharedArtifactDirectory()
protected void cleanupProject()
BaseJob
cleanupProject
in class BaseJob
Copyright © 2016–2023 Vector Informatik, GmbH. All rights reserved.