Loading templates/dotnet-build.yml +4 −4 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ dotnet-restore: NUGET_RESTORE_ARGS: "$[[ inputs.solution_path ]]" script: - if [ -z "$NUGET_RESTORE_ARGS" ]; then echo "No solution/project specified, skipping restore." && exit 0; fi - dotnet restore "$NUGET_RESTORE_ARGS" --configuration "$BUILD_CONFIGURATION" - dotnet restore "$NUGET_RESTORE_ARGS" -p:Configuration="$BUILD_CONFIGURATION" rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS Loading @@ -71,7 +71,7 @@ dotnet-build: variables: DOTNET_BUILD_ARGS: "$[[ inputs.solution_path ]]" script: - dotnet build "$DOTNET_BUILD_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore - dotnet build "$DOTNET_BUILD_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore artifacts: paths: - "**/bin/$BUILD_CONFIGURATION/**" Loading @@ -91,7 +91,7 @@ dotnet-test: variables: DOTNET_TEST_ARGS: "$[[ inputs.solution_path ]]" script: - dotnet test "$DOTNET_TEST_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore --no-build - dotnet test "$DOTNET_TEST_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore --no-build artifacts: when: always reports: Loading @@ -112,7 +112,7 @@ dotnet-publish: variables: DOTNET_PUBLISH_ARGS: "$[[ inputs.solution_path ]]" script: - dotnet publish "$DOTNET_PUBLISH_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore --no-build --output "$PUBLISH_OUTPUT" - dotnet publish "$DOTNET_PUBLISH_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore --no-build --output "$PUBLISH_OUTPUT" artifacts: paths: - "$PUBLISH_OUTPUT/**" Loading Loading
templates/dotnet-build.yml +4 −4 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ dotnet-restore: NUGET_RESTORE_ARGS: "$[[ inputs.solution_path ]]" script: - if [ -z "$NUGET_RESTORE_ARGS" ]; then echo "No solution/project specified, skipping restore." && exit 0; fi - dotnet restore "$NUGET_RESTORE_ARGS" --configuration "$BUILD_CONFIGURATION" - dotnet restore "$NUGET_RESTORE_ARGS" -p:Configuration="$BUILD_CONFIGURATION" rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS Loading @@ -71,7 +71,7 @@ dotnet-build: variables: DOTNET_BUILD_ARGS: "$[[ inputs.solution_path ]]" script: - dotnet build "$DOTNET_BUILD_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore - dotnet build "$DOTNET_BUILD_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore artifacts: paths: - "**/bin/$BUILD_CONFIGURATION/**" Loading @@ -91,7 +91,7 @@ dotnet-test: variables: DOTNET_TEST_ARGS: "$[[ inputs.solution_path ]]" script: - dotnet test "$DOTNET_TEST_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore --no-build - dotnet test "$DOTNET_TEST_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore --no-build artifacts: when: always reports: Loading @@ -112,7 +112,7 @@ dotnet-publish: variables: DOTNET_PUBLISH_ARGS: "$[[ inputs.solution_path ]]" script: - dotnet publish "$DOTNET_PUBLISH_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore --no-build --output "$PUBLISH_OUTPUT" - dotnet publish "$DOTNET_PUBLISH_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore --no-build --output "$PUBLISH_OUTPUT" artifacts: paths: - "$PUBLISH_OUTPUT/**" Loading