This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
stageDependency: [] | |
stageName: '' | |
environment: '' | |
displayName: '' | |
deployment: '' | |
stages: | |
- stage: ${{parameters.stageName}} | |
dependsOn: ${{parameters.stageDependency}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stageName: '' | |
stageDependency: '' | |
targetServerGroup: $(prodOnPremServer) | |
packageName: $(packageNameClientApp) | |
targetWebsiteName: $(appPoolNamePROD) | |
installationPath: $(installationPathClientPROD) | |
targetport: $(targetportClientApp) | |
targetWebsiteAppPool: $(appPoolNamePROD) | |
artifactFeed: $(artifactFeed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hostBindingsDev: '{"bindings":[{"protocol":"http","ipAddress":"All Unassigned","port":"80","hostname":"payments-dev","sslThumbprint":"","sniFlag":false}]}' | |
parameters: | |
stageDependency: [] | |
stageName: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isMasterOrReleasableBranch: $[or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: DotNetCoreCLI@2 | |
displayName: Push to DevOps feed | |
condition: and(succeeded(), eq(variables.isMasterOrReleasableBranch, true)) | |
inputs: | |
command: "push" | |
nuGetFeedType: "internal" # Required when command == push. Options: internal, external | |
packagesToPush: "$(Build.ArtifactStagingDirectory)/*.nupkg" # Required when command == push | |
publishVstsFeed: "API" # Required when command == push && NuGetFeedType == internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: PowerShell@2 | |
displayName: 'Setting packageVersion environment to versioning value.' | |
inputs: | |
targetType: 'inline' | |
script: | | |
$packageVersion = '$(majorVersion).$(minorVersion).$(Build.BuildId)' | |
Write-Host "##vso[task.setvariable variable=PackageVersion;]$packageVersion" | |
- task: NuGetCommand@2 | |
displayName: Package Api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: DotNetCoreCLI@2 | |
displayName: Publish Api | |
inputs: | |
command: "publish" | |
publishWebProjects: "false" | |
versioningScheme: "byBuildNumber" | |
workingDirectory: "$(Build.SourcesDirectory)" | |
projects: "**/*.Api.csproj" | |
arguments: "--output $(Build.ArtifactStagingDirectory) --configuration $(buildConfiguration)" | |
zipAfterPublish: "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you're on the branch | |
git log master.. | |
Otherwise | |
git log master..<your branch name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: SonarQubeAnalyze@4 | |
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))) | |
- task: SonarQubePublish@4 | |
inputs: | |
pollingTimeoutSec: '300' | |
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NCRONTAB examples | |
Here are some examples of NCRONTAB expressions you can use for the timer trigger in Azure Functions. | |
NCRONTAB EXAMPLES | |
Example When triggered | |
"0 */5 * * * *" once every five minutes | |
"0 0 * * * *" once at the top of every hour | |
"0 0 */2 * * *" once every two hours | |
"0 0 9-17 * * *" once every hour from 9 AM to 5 PM | |
"0 30 9 * * *" at 9:30 AM every day |
NewerOlder