Skip to content

Commit 47e7686

Browse files
committed
Work CI-CD
- Fix versions setting. ***UPDATE_DEPENDENTS***
1 parent d82628f commit 47e7686

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,10 @@ jobs:
139139
msbuildArgs: '/p:PublicRelease=true'
140140
configuration: '$(buildConfiguration)'
141141

142-
# update could build number (only possible if this is not a PR from a fork)
143-
- task: PowerShell@2
144-
condition: and( succeeded(), ne(variables['system.pullrequest.isfork'], true) )
145-
displayName: Update cloud build number
146-
inputs:
147-
targetType: 'inline'
148-
script: Write-Host "$("##vso[build.updatebuildnumber]")$env:NBGV_NuGetPackageVersion"
149-
150-
- task: PowerShell@2
151-
displayName: Store NBGV versions
152-
inputs:
153-
targetType: 'inline'
154-
script: |
155-
Write-Host "$("##vso[task.setvariable variable=BKP_NBGV_NuGetPackageVersion]")$env:NBGV_NuGetPackageVersion"
156-
Write-Host "$("##vso[task.setvariable variable=BKP_GitBuildVersionSimple]")$env:GitBuildVersionSimple"
157-
142+
- script: nbgv cloud -a -c
143+
condition: succeeded()
144+
displayName: Set Could Version
145+
158146
- task: VisualStudioTestPlatformInstaller@1
159147
condition: succeeded()
160148
displayName: 'Visual Studio Test Platform Installer'
@@ -194,7 +182,7 @@ jobs:
194182
displayName: Pack NuGet with MDP MSBuild task
195183
inputs:
196184
command: 'custom'
197-
arguments: 'pack MetadataProcessor.MsBuildTask\package.nuspec -Version $(BKP_NBGV_NuGetPackageVersion) -properties commit="$(Build.SourceVersion)"'
185+
arguments: 'pack MetadataProcessor.MsBuildTask\package.nuspec -Version $(NBGV_NuGetPackageVersion) -properties commit="$(Build.SourceVersion)"'
198186

199187
- task: CopyFiles@1
200188
condition: succeeded()
@@ -257,7 +245,7 @@ jobs:
257245
githubOwner: 'nanoframework'
258246
githubRepositoryName: 'metadata-processor'
259247
githubTag: v$(GitBuildVersionSimple)
260-
githubReleaseTitle: 'nanoFramework Metadata Processor v$(BKP_GitBuildVersionSimple)'
248+
githubReleaseTitle: 'nanoFramework Metadata Processor v$(GitBuildVersionSimple)'
261249
githubReleaseNotes: 'add description here'
262250
githubTargetCommitsh: $(Build.SourceVersion)
263251
githubReleaseDraft: false

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"precision": "minor"
1111
},
1212
"nuGetPackageVersion": {
13-
"semVer": 2.0
13+
"semVer": 2
1414
},
1515
"publicReleaseRefSpec": [
1616
"^refs/heads/master$",

0 commit comments

Comments
 (0)