-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Implementation of Jenkins (controller) executor.
- Loading branch information
1 parent
822bd6b
commit f9040c5
Showing
7 changed files
with
183 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
UET/Redpoint.Uet.BuildPipeline.Executors.Jenkins/JenkinsBuildInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Redpoint.Uet.BuildPipeline.Executors.Jenkins | ||
{ | ||
using System.Text.Json.Serialization; | ||
|
||
internal class JenkinsBuildInfo | ||
{ | ||
[JsonPropertyName("result"), JsonRequired] | ||
public string Result { get; set; } = string.Empty; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
UET/Redpoint.Uet.BuildPipeline.Executors.Jenkins/JenkinsBuildNodeExecutor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace Redpoint.Uet.BuildPipeline.Executors.Jenkins | ||
{ | ||
using Redpoint.Uet.BuildPipeline.Executors; | ||
using Redpoint.Uet.BuildPipeline.Executors.BuildServer; | ||
using Redpoint.Uet.Configuration.Dynamic; | ||
using Redpoint.Uet.Configuration.Plugin; | ||
using Redpoint.Uet.Configuration.Project; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
public class JenkinsBuildNodeExecutor : IBuildNodeExecutor | ||
{ | ||
public string DiscoverPipelineId() | ||
{ | ||
// TODO: This might be wrong if the ID is expected to be the same between the main executor and node executors, investigate. | ||
return Environment.GetEnvironmentVariable("BUILD_TAG") ?? string.Empty; | ||
} | ||
|
||
public Task<int> ExecuteBuildNodesAsync(BuildSpecification buildSpecification, BuildConfigDynamic<BuildConfigPluginDistribution, IPrepareProvider>[]? preparePlugin, BuildConfigDynamic<BuildConfigProjectDistribution, IPrepareProvider>[]? prepareProject, IBuildExecutionEvents buildExecutionEvents, IReadOnlyList<string> nodeNames, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.