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, prettyLog
public 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
- IOException
InterruptedException
public 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
- IOException
InterruptedException
DotNetCommandLineException
public void addPackage(String packageName, String version) throws IOException, InterruptedException, DotNetCommandLineException
packageName
- version
- IOException
InterruptedException
DotNetCommandLineException
public void build() throws IOException, InterruptedException, DotNetCommandLineException
public void run() throws IOException, InterruptedException, DotNetCommandLineException
public boolean validateDotNetVersion() throws IOException, InterruptedException, DotNetCommandLineException
IOException
InterruptedException
DotNetCommandLineException
public String getDotNetVersion() throws IOException, InterruptedException, DotNetCommandLineException
IOException
InterruptedException
DotNetCommandLineException
Copyright © 2016–2017. All rights reserved.