jetbrains.buildServer.agent.runner.CommandLineBuildService Java Examples
The following examples show how to use
jetbrains.buildServer.agent.runner.CommandLineBuildService.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SQMSBuildFinishServiceFactory.java From TeamCity.SonarQubePlugin with Apache License 2.0 | 5 votes |
@NotNull @Override public CommandLineBuildService createService() { final SonarQubeMSBuildScannerLocator msBuildScannerLocator = myMSBuildScannerLocator; final File workingDirectory = myWorkingDirectory; final SQRParametersAccessor sqrParametersAccessor = mySqrParametersAccessor; if (msBuildScannerLocator == null || workingDirectory == null || sqrParametersAccessor == null) { return new CommandLineBuildService() { @NotNull @Override public ProgramCommandLine makeProgramCommandLine() throws RunBuildException { throw new RunBuildException("SonarScanner for MSBuild: begin analysis runner was not triggered yet"); } }; } return new SimpleExecute( new ExecutionChain(Arrays.asList( new SonarQubeArgumentsWrapper(new SQScannerArgsComposer(myOSType), new SQRParametersAccessorFactory() { public SQRParametersAccessor createAccessor(@NotNull final BuildRunnerContext runnerContext) { return sqrParametersAccessor; } }), new MonoWrapper(myOSType, myMonoLocator), new EndExecution())), new SQMSBuildExecutableFactory(msBuildScannerLocator), workingDirectory.getAbsolutePath()); }
Example #2
Source File: SQMSBuildStartServiceFactory.java From TeamCity.SonarQubePlugin with Apache License 2.0 | 5 votes |
@NotNull @Override public CommandLineBuildService createService() { return new SimpleExecute( new ExecutionChain( Arrays.asList( new SonarQubeArgumentsWrapper(new SQScannerArgsComposer(myOSType)), new MonoWrapper(myOSType, myMonoLocator), new BeginExecutionWrapper())), new SQMSBuildExecutableFactory(mySonarQubeMSBuildScannerLocator)); }
Example #3
Source File: AnsibleRunServiceFactory.java From tc-ansible-runner with MIT License | 4 votes |
@Override public CommandLineBuildService createService() { return new AnsibleRunService(artifactsWatcher); }
Example #4
Source File: SQRBuildServiceFactory.java From TeamCity.SonarQubePlugin with Apache License 2.0 | 4 votes |
@NotNull public CommandLineBuildService createService() { return new SQRBuildService(mySonarProcessListener, myOsType); }
Example #5
Source File: AllureBuildServiceFactory.java From allure-teamcity with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @NotNull @Override public CommandLineBuildService createService() { return new AllureBuildServiceAdapter(artifactsWatcher); }