diff --git a/scripts/pipelines/azure-devops/templates/build/build-pipeline.cfg b/scripts/pipelines/azure-devops/templates/build/build-pipeline.cfg index 8ac10f3f8..986b28f7d 100644 --- a/scripts/pipelines/azure-devops/templates/build/build-pipeline.cfg +++ b/scripts/pipelines/azure-devops/templates/build/build-pipeline.cfg @@ -27,5 +27,5 @@ function addPipelineVariables { setTargetDirectory fi - az pipelines variable create --name "targetPath" --pipeline-name "${pipelineName}" --value "${targetDirectory}" + az pipelines variable create --name "buildTargetPath" --pipeline-name "${pipelineName}" --value "${targetDirectory}" } \ No newline at end of file diff --git a/scripts/pipelines/azure-devops/templates/build/build-pipeline.yml.template b/scripts/pipelines/azure-devops/templates/build/build-pipeline.yml.template index 1eaaff9b9..2a709b059 100644 --- a/scripts/pipelines/azure-devops/templates/build/build-pipeline.yml.template +++ b/scripts/pipelines/azure-devops/templates/build/build-pipeline.yml.template @@ -21,7 +21,6 @@ steps: - task: Bash@3 displayName: "Archiving build artifact to the ArtifactStagingDirectory" inputs: - targetType: inline script: 'tar -cvf $(Build.ArtifactStagingDirectory)/BuildOutput.tar -C $(Build.Repository.LocalPath)/${{ parameters.artifactPath }} .' - publish: $(Build.ArtifactStagingDirectory)/BuildOutput.tar diff --git a/scripts/pipelines/azure-devops/templates/build/dotnet-build.sh b/scripts/pipelines/azure-devops/templates/build/dotnet-build.sh new file mode 100644 index 000000000..59e16f449 --- /dev/null +++ b/scripts/pipelines/azure-devops/templates/build/dotnet-build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +dotnet build -c Release -o "$BUILDTARGETPATH" diff --git a/scripts/pipelines/common/pipeline_generator.lib b/scripts/pipelines/common/pipeline_generator.lib index 1c6f092dc..e737f837c 100644 --- a/scripts/pipelines/common/pipeline_generator.lib +++ b/scripts/pipelines/common/pipeline_generator.lib @@ -217,6 +217,7 @@ function setTargetDirectory { case $language in node | angular) targetDirectory="./" ;; quarkus*) targetDirectory="./target/" ;; + dotnet) targetDirectory="./build/" ;; *) echo -e "${red}Error: Specified language '${language}' is not supported." >&2; exit 1 esac }