Skip to content

Feature/feature 123 #115

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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
75b4a79
Set up CI with Azure Pipelines
satendra25 Aug 6, 2022
6a30003
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
241d9a1
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
cc2fd23
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
eb1cd3c
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
4fd8d4e
feature branch changes
satendra25 Aug 6, 2022
61bd86a
feature branch changes 1
satendra25 Aug 6, 2022
9446cd1
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
3466698
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
a774ddb
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
9c80d8d
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
ddebdc7
Merge branch 'master' into feature/feature-123
satendra25 Aug 6, 2022
6a2f775
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
0414405
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
4f8a816
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
53aa923
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
7ecf0bc
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
41f3a3e
commit with tag
satendra25 Aug 6, 2022
1d60220
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
bf88203
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
e7024f0
Update azure-pipelines.yml for Azure Pipelines
satendra25 Aug 6, 2022
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
1 change: 1 addition & 0 deletions Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
<p><h1 class="display-4">This is from feature branch branch with tag</h1></p>
</div>
70 changes: 70 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
branches:
include:
- feature/*
tags:
include:
- feature/feature.*

pr:
branches:
include:
- master

pool:
vmImage: ubuntu-latest

variables:
buildConfiguration: 'Release'

stages:
# - stage: PR
# displayName: Pull Request Stage
# condition: eq(variables['Build.Reason'], 'PullRequest')
# jobs:
# - job: build
# displayName: build pipeline-dotnet-core
# continueOnError: false
# steps:
# - task: DotNetCoreCLI@2
# displayName: build
# inputs:
# command: 'build'
# arguments: '--configuration $(buildConfiguration)'
# displayName: 'dotnet build $(buildConfiguration)'

- stage: build
displayName: Build Stage
#condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
jobs:
- job: build
displayName: build pipeline-dotnet-core
continueOnError: false
steps:
- task: DotNetCoreCLI@2
displayName: build
inputs:
command: 'build'
arguments: '--configuration $(buildConfiguration)'
displayName: 'dotnet build $(buildConfiguration)'

- task: DotNetCoreCLI@2
displayName: publish
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True

# this code takes all the files in $(Build.ArtifactStagingDirectory) and uploads them as an artifact of your build.
- task: PublishPipelineArtifact@1
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
displayName: publish artifact to myWebsiteName
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'myWebsiteName'