Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 4a9cd61

Browse files
committed
Fix a bad merge of the build script
1 parent 97d0e0c commit 4a9cd61

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

build.cake

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -428,19 +428,6 @@ Task ("nuget-setup")
428428
}
429429
});
430430

431-
Task ("clean")
432-
.IsDependentOn ("clean-base")
433-
.Does (() =>
434-
{
435-
var yamls = GetFiles ("./**/component/component.template.yaml");
436-
437-
foreach (var yaml in yamls) {
438-
var manifestTxt = FileReadText (yaml)
439-
.Replace ("$nuget-version$", NUGET_VERSION)
440-
.Replace ("$version$", COMPONENT_VERSION);
441-
442-
var newYaml = yaml.GetDirectory ().CombineWithFilePath ("component.yaml");
443-
444431
Task ("ci-setup")
445432
.WithCriteria (!BuildSystem.IsLocalBuild)
446433
.Does (() =>
@@ -622,27 +609,6 @@ Task ("droiddocs")
622609
}
623610
});
624611

625-
Task ("ci-setup")
626-
.WithCriteria (!BuildSystem.IsLocalBuild)
627-
.Does (() =>
628-
{
629-
var buildCommit = "DEV";
630-
var buildNumber = "DEBUG";
631-
var buildTimestamp = DateTime.UtcNow.ToString ();
632-
633-
if (BuildSystem.IsRunningOnJenkins) {
634-
buildNumber = BuildSystem.Jenkins.Environment.Build.BuildTag;
635-
buildCommit = EnvironmentVariable("GIT_COMMIT") ?? buildCommit;
636-
} else if (BuildSystem.IsRunningOnVSTS) {
637-
buildNumber = BuildSystem.TFBuild.Environment.Build.Number;
638-
buildCommit = BuildSystem.TFBuild.Environment.Repository.SourceVersion;
639-
}
640-
641-
ReplaceTextInFiles("./**/source/**/AssemblyInfo.cs", "{BUILD_COMMIT}", buildCommit);
642-
ReplaceTextInFiles("./**/source/**/AssemblyInfo.cs", "{BUILD_NUMBER}", buildNumber);
643-
ReplaceTextInFiles("./**/source/**/AssemblyInfo.cs", "{BUILD_TIMESTAMP}", buildTimestamp);
644-
});
645-
646612
Task ("clean")
647613
.IsDependentOn ("clean-base")
648614
.Does (() =>

0 commit comments

Comments
 (0)