1- name : 1.0 .$(Date:yyyyMMdd)$(Rev:r)
1+ name : 1.x .$(Date:yyyyMMdd)$(Rev:r)
22
33trigger :
44- dev
1717 pythonVersion : ' 3.6'
1818 Python37 :
1919 pythonVersion : ' 3.7'
20+ Python38 :
21+ pythonVersion : ' 3.8'
2022 maxParallel : 1
2123 steps :
2224 - task : UsePythonVersion@0
@@ -54,14 +56,16 @@ jobs:
5456
5557 - job : Build_WINDOWS_X64
5658 dependsOn : ' Tests'
57- pool :
59+ pool :
5860 vmImage : ' vs2017-win2016'
5961 strategy :
6062 matrix :
6163 Python36 :
6264 pythonVersion : ' 3.6'
6365 Python37 :
6466 pythonVersion : ' 3.7'
67+ Python38 :
68+ pythonVersion : ' 3.8'
6569 steps :
6670 - template : pack/templates/win_env_gen.yml
6771 parameters :
@@ -70,12 +74,14 @@ jobs:
7074 artifactName : ' $(pythonVersion)_WINDOWS_X64'
7175- job : Build_WINDOWS_X86
7276 dependsOn : ' Tests'
73- pool :
77+ pool :
7478 vmImage : ' vs2017-win2016'
7579 strategy :
7680 matrix :
7781 Python37 :
7882 pythonVersion : ' 3.7'
83+ Python38 :
84+ pythonVersion : ' 3.8'
7985 steps :
8086 - template : pack/templates/win_env_gen.yml
8187 parameters :
@@ -84,29 +90,33 @@ jobs:
8490 artifactName : ' $(pythonVersion)_WINDOWS_x86'
8591- job : Build_LINUX_X64
8692 dependsOn : ' Tests'
87- pool :
93+ pool :
8894 vmImage : ' ubuntu-16.04'
8995 strategy :
9096 matrix :
9197 Python36 :
9298 pythonVersion : ' 3.6'
9399 Python37 :
94100 pythonVersion : ' 3.7'
101+ Python38 :
102+ pythonVersion : ' 3.8'
95103 steps :
96104 - template : pack/templates/nix_env_gen.yml
97105 parameters :
98106 pythonVersion : ' $(pythonVersion)'
99107 artifactName : ' $(pythonVersion)_LINUX_X64'
100108- job : Build_OSX_X64
101109 dependsOn : ' Tests'
102- pool :
110+ pool :
103111 vmImage : ' macOS-10.13'
104112 strategy :
105113 matrix :
106114 Python36 :
107115 pythonVersion : ' 3.6'
108116 Python37 :
109117 pythonVersion : ' 3.7'
118+ Python38 :
119+ pythonVersion : ' 3.8'
110120 steps :
111121 - template : pack/templates/nix_env_gen.yml
112122 parameters :
@@ -121,7 +131,22 @@ jobs:
121131 ]
122132 pool :
123133 vmImage : ' vs2017-win2016'
134+ strategy :
135+ matrix :
136+ V2PythonWorker :
137+ minorVersion : ' 0'
138+ nuspecPath : ' pack\Microsoft.Azure.Functions.V2.PythonWorker.nuspec'
139+ V3PythonWorker :
140+ minorVersion : ' 1'
141+ nuspecPath : ' pack\Microsoft.Azure.Functions.V3.PythonWorker.nuspec'
124142 steps :
143+ - bash : |
144+ MAJOR=$(echo $BUILD_BUILDNUMBER | cut -d '.' -f1)
145+ MINOR=$(minorVersion)
146+ PATCH=$(echo $BUILD_BUILDNUMBER | cut -d '.' -f3)
147+ echo "##vso[task.setvariable variable=worker_version]$MAJOR.$MINOR.$PATCH"
148+ echo "Packaging Python Worker Version $MAJOR.$MINOR.$PATCH"
149+ displayName: "Generate Worker Version"
125150 - task : DownloadBuildArtifacts@0
126151 inputs :
127152 buildType : ' current'
@@ -130,11 +155,10 @@ jobs:
130155 - task : NuGetCommand@2
131156 inputs :
132157 command : pack
133- packagesToPack : ' pack\Microsoft.Azure.Functions.PythonWorker.nuspec '
158+ packagesToPack : ' $(nuspecPath) '
134159 versioningScheme : ' byEnvVar'
135- versionEnvVar : BUILD_BUILDNUMBER # Replaces version in nuspec
160+ versionEnvVar : WORKER_VERSION # Replaces version in nuspec
136161 - task : PublishBuildArtifacts@1
137162 inputs :
138163 pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
139164 artifactName : ' PythonWorker'
140-
0 commit comments