File tree 4 files changed +72
-8
lines changed
4 files changed +72
-8
lines changed Original file line number Diff line number Diff line change
1
+ trigger : none # ensure this is not ran as a CI build
2
+
3
+ pr :
4
+ branches :
5
+ include :
6
+ - dev
7
+ - release/*
8
+
9
+ resources :
10
+ repositories :
11
+ - repository : 1es
12
+ type : git
13
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
14
+ ref : refs/tags/release
15
+ - repository : eng
16
+ type : git
17
+ name : engineering
18
+ ref : refs/tags/release
19
+
20
+ variables :
21
+ - template : ci/variables/build.yml@eng
22
+ - template : /ci/variables/cfs.yml@eng
23
+
24
+ extends :
25
+ template : v1/1ES.Unofficial.PipelineTemplate.yml@1es
26
+ parameters :
27
+ pool :
28
+ name : 1es-pool-azfunc
29
+ image : 1es-windows-2022
30
+ os : windows
31
+
32
+ stages :
33
+ - stage : TestWindows
34
+ jobs :
35
+ - template : /eng/ci/templates/official/jobs/run-e2e-tests-windows.yml@self
36
+
37
+ - stage : TestLinux
38
+ dependsOn :
39
+ - TestWindows
40
+
41
+ jobs :
42
+ - template : /eng/ci/templates/official/jobs/run-e2e-tests-linux.yml@self
Original file line number Diff line number Diff line change 1
1
schedules :
2
- - cron : " 0 0 * * *"
2
+ - cron : " 0 20 * * *"
3
3
displayName : Nightly Build
4
4
branches :
5
5
include :
@@ -53,7 +53,6 @@ extends:
53
53
54
54
- stage : TestLinux
55
55
dependsOn :
56
- - Build
57
56
- TestWindows
58
57
59
58
jobs :
Original file line number Diff line number Diff line change 8
8
os : linux
9
9
10
10
variables :
11
- buildNumber : $[ stageDependencies.Build.Build.outputs['output.buildNumber'] ]
12
- ApplicationInsightAgentVersion : 3.5.1
11
+ ${{ if contains(variables['Build.SourceBranch'], '/tags/' ) }} :
12
+ isTagTemp : true
13
+ isTag : $[variables.isTagTemp]
14
+ ApplicationInsightAgentVersion : 3.5.2
13
15
14
16
strategy :
15
17
maxParallel : 1
53
55
java -version
54
56
displayName: 'Check default java version'
55
57
- pwsh : |
56
- .\package-pipeline.ps1 -buildNumber $(buildNumber)
58
+ if ("$(isTag)"){
59
+ $buildNumber="$(Build.SourceBranchName)"
60
+ Write-Host "Found git tag."
61
+ }
62
+ else {
63
+ $buildNumber="$(Build.BuildNumber)-v4"
64
+ Write-Host "git tag not found. Setting package suffix to '$buildNumber'"
65
+ }
66
+ Write-Host "##vso[task.setvariable variable=buildNumber;isOutput=true;]$buildNumber"
67
+ .\package-pipeline.ps1 -buildNumber $buildNumber
57
68
displayName: 'Executing build script'
58
69
- task : UseDotNet@2
59
70
displayName : ' Install .NET 6'
Original file line number Diff line number Diff line change 8
8
os : windows
9
9
10
10
variables :
11
- buildNumber : $[ stageDependencies.Build.Build.outputs['output.buildNumber'] ]
12
- ApplicationInsightAgentVersion : 3.5.1
11
+ ${{ if contains(variables['Build.SourceBranch'], '/tags/' ) }} :
12
+ isTagTemp : true
13
+ isTag : $[variables.isTagTemp]
14
+ ApplicationInsightAgentVersion : 3.5.2
13
15
14
16
strategy :
15
17
maxParallel : 1
43
45
java -version
44
46
displayName: 'Check default java version'
45
47
- pwsh : |
46
- .\package-pipeline.ps1 -buildNumber $(buildNumber)
48
+ if ("$(isTag)"){
49
+ $buildNumber="$(Build.SourceBranchName)"
50
+ Write-Host "Found git tag."
51
+ }
52
+ else {
53
+ $buildNumber="$(Build.BuildNumber)-v4"
54
+ Write-Host "git tag not found. Setting package suffix to '$buildNumber'"
55
+ }
56
+ Write-Host "##vso[task.setvariable variable=buildNumber;isOutput=true;]$buildNumber"
57
+ .\package-pipeline.ps1 -buildNumber $buildNumber
47
58
displayName: 'Executing build script'
48
59
- task : UseDotNet@2
49
60
displayName : ' Install .NET 6'
61
72
- pwsh : |
62
73
.\setup-tests-pipeline.ps1
63
74
displayName: 'Setup test environment -- Install the Core Tools'
75
+
64
76
- pwsh : |
65
77
$currDir = Get-Location
66
78
$Env:Path = $Env:Path+";$currDir/Azure.Functions.Cli"
You can’t perform that action at this time.
0 commit comments