public class DotNetCommandLineManager extends ManagerBase
logger| Constructor and Description |
|---|
DotNetCommandLineManager(PrintStream logger,
hudson.Launcher launcher,
hudson.EnvVars env,
hudson.model.TaskListener listener,
NodeFile targetWorkspace,
String projectName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPackage(String packageName)
Adds a package to the project with the last version
|
void |
addPackage(String packageName,
String version)
Adds a package to the project with the specific version
|
void |
build()
Builds the current DOTNET project
|
void |
createProject()
Creates the DOTNET project
|
String |
getDotNetVersion()
Gets the current DOTNET version
|
NodeFile |
getProjectFolder()
Gets the current project folder
|
void |
restoreDependencies()
Restores the DOTNET packages
|
void |
run()
Runs the current DOTNET project
|
boolean |
validateDotNetVersion()
Validates the DOTNET version
|
log, prettyLogpublic DotNetCommandLineManager(PrintStream logger, hudson.Launcher launcher, hudson.EnvVars env, hudson.model.TaskListener listener, NodeFile targetWorkspace, String projectName) throws IOException, InterruptedException
logger - launcher - env - listener - targetWorkspace - projectName - IOExceptionInterruptedExceptionpublic void createProject()
throws IOException,
InterruptedException,
DotNetCommandLineException
public void restoreDependencies()
throws IOException,
InterruptedException,
DotNetCommandLineException
public NodeFile getProjectFolder()
public void addPackage(String packageName) throws IOException, InterruptedException, DotNetCommandLineException
packageName - IOExceptionInterruptedExceptionDotNetCommandLineExceptionpublic void addPackage(String packageName, String version) throws IOException, InterruptedException, DotNetCommandLineException
packageName - version - IOExceptionInterruptedExceptionDotNetCommandLineExceptionpublic void build()
throws IOException,
InterruptedException,
DotNetCommandLineException
public void run()
throws IOException,
InterruptedException,
DotNetCommandLineException
public boolean validateDotNetVersion()
throws IOException,
InterruptedException,
DotNetCommandLineException
IOExceptionInterruptedExceptionDotNetCommandLineExceptionpublic String getDotNetVersion() throws IOException, InterruptedException, DotNetCommandLineException
IOExceptionInterruptedExceptionDotNetCommandLineExceptionCopyright © 2016–2017. All rights reserved.