Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/block99 Build pipeline for devon4net #146

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion documentation/azure-devops/setup-build-pipeline.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,10 @@ NOTE: The config file for the build pipeline is located at `/scripts/pipelines/a
==== Angular project
```
./pipeline_generator.sh -c ./templates/build/build-pipeline.cfg -n angular-project-build -l angular -d C:/Users/$USERNAME/Desktop/angular-project -b develop -w
```
```
==== .Net project
```
./pipeline_generator.sh -c ./templates/build/build-pipeline.cfg -n dotnet-project-build -l dotnet -d C:/Users/$USERNAME/Desktop/dotnet-project -b develop -w
```

CAUTION: Remember to write the path to the local repository with '/' and not '\' on Windows.
patricpoba marked this conversation as resolved.
Show resolved Hide resolved
1 change: 0 additions & 1 deletion scripts/pipelines/azure-devops/pipeline_generator.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
set -e

FLAGS=$(getopt -a --options c:n:d:a:b:l:t:i:u:p:hw --long "config-file:,pipeline-name:,local-directory:,artifact-path:,target-branch:,language:,target-directory:,build-pipeline-name:,sonar-url:,sonar-token:,image-name:,registry-user:,registry-password:,resource-group:,storage-account:,storage-container:,cluster-name:,s3-bucket:,s3-key-path:,quality-pipeline-name:,dockerfile:,test-pipeline-name:,aws-access-key:,aws-secret-access-key:,aws-region:,help" -- "$@")

eval set -- "$FLAGS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function addPipelineVariables {
case $language in
node | angular) targetDirectory="./" ;;
quarkus*) targetDirectory="./target/" ;;
dotnet) targetDirectory="./obj/" ;;
*) echo -e "${red}Error: Specified language '${language}' is not supported." >&2; exit 1
esac
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ steps:

- publish: $(Build.Repository.LocalPath)/$(targetPath)
displayName: "Publish Artifact"
artifact: BuildOutput
artifact: BuildOutput
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
dotnet build -c Release