@@ -1348,109 +1348,6 @@ jobs:
13481348 artifactName : VsTestCrashDumps
13491349 artifactType : pipeline
13501350
1351- # #####################
1352- # generate change log
1353- - job : Generate_change_log
1354- dependsOn :
1355- - Build_STM32_targets
1356- - Build_ESP32_targets
1357- - Build_NXP_targets
1358- - Build_TI_SimpleLink_targets
1359- - Build_Azure_RTOS_targets
1360- # skip build if this is a PR, submitted by nfbot and the commit message contains [version update]
1361- condition : >-
1362- and(
1363- succeeded('Build_STM32_targets'),
1364- succeeded('Build_ESP32_targets'),
1365- succeeded('Build_NXP_targets'),
1366- succeeded('Build_TI_SimpleLink_targets'),
1367- succeeded('Build_Azure_RTOS_targets'),
1368- not( eq(variables['Build.Reason'], 'PullRequest')
1369- ),
1370- or(
1371- eq(variables['Build.SourceBranchName'], 'main'),
1372- startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ),
1373- ne( variables['StartReleaseCandidate'], true )
1374- )
1375-
1376- pool :
1377- vmImage : " windows-latest"
1378-
1379- steps :
1380- - task : DotNetCoreCLI@2
1381- condition : succeeded()
1382- displayName : Install NBGV tool
1383- inputs :
1384- command : custom
1385- custom : tool
1386- arguments : install --tool-path . nbgv
1387-
1388- - script : nbgv cloud -a -c
1389- condition : succeeded()
1390- displayName : Set build number
1391-
1392- - task : UseRubyVersion@0
1393- condition : succeeded()
1394- inputs :
1395- versionSpec : " = 3.0"
1396- addToPath : true
1397-
1398- # Cache change log cache files
1399- - task : Cache@2
1400- displayName : Cache change log cache files
1401- condition : >-
1402- and(
1403- succeeded(),
1404- eq(variables['System.PullRequest.PullRequestId'], ''),
1405- startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
1406- )
1407- inputs :
1408- key : " changeLogCacheFiles"
1409- restoreKeys : 1_0
1410- path : |
1411- $(Agent.TempDirectory)/github-changelog-logger.log
1412- $(Agent.TempDirectory)/github-changelog-http-cache
1413-
1414- # generate change log including future version
1415- - powershell : |
1416- gem install github_changelog_generator --quiet --no-document
1417- # need to call it passing both cache options with full path otherwise it won't work
1418- github_changelog_generator --token $(GitHubToken) --cache-log $env:AGENT_TEMPDIRECTORY\github-changelog-logger.log --cache-file $env:AGENT_TEMPDIRECTORY\github-changelog-http-cache --pr-wo-labels --future-release "v$env:NBGV_AssemblyVersion"
1419- condition: >-
1420- and(
1421- succeeded(),
1422- eq(variables['System.PullRequest.PullRequestId'], ''),
1423- startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
1424- )
1425- displayName: Generate change log
1426-
1427- # push new changelog to GitHub repo
1428- - powershell : |
1429- git config --global gc.auto 0
1430- git config --global user.name nfbot
1431- git config --global user.email [email protected] 1432- git config --global core.autocrlf true
1433-
1434- git add CHANGELOG.md
1435- git commit -m "Update CHANGELOG" -m"***NO_CI***"
1436-
1437- # compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
1438- # 'encoded token' is the Base64 of the string "nfbot:personal-token"
1439- $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)")))"
1440-
1441- git -c http.extraheader="AUTHORIZATION: $auth" push origin "HEAD:$(Build.SourceBranchName)"
1442- condition: >-
1443- and(
1444- succeeded(),
1445- eq(variables['System.PullRequest.PullRequestId'], ''),
1446- not(
1447- startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
1448- ),
1449- eq( variables['StartReleaseCandidate'], false )
1450- )
1451- continueOnError: true
1452- displayName: Push changelog to GitHub
1453-
14541351 # ################################
14551352 # report build failure to Discord
14561353 - job : Report_Build_Failure
@@ -1462,7 +1359,6 @@ jobs:
14621359 - Build_Azure_RTOS_targets
14631360 - Build_WIN32_nanoCLR
14641361 - Build_nanoCLR_CLI
1465- - Generate_change_log
14661362 - Check_Code_Style
14671363 condition : >-
14681364 and(
@@ -1474,8 +1370,7 @@ jobs:
14741370 failed('Build_TI_SimpleLink_targets'),
14751371 failed('Build_Azure_RTOS_targets'),
14761372 failed('Build_WIN32_nanoCLR'),
1477- failed('Build_nanoCLR_CLI'),
1478- failed('Generate_change_log')
1373+ failed('Build_nanoCLR_CLI')
14791374 )
14801375 )
14811376
0 commit comments