Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- Remove PS1 to update VS Code extension as this is not required anymore.
- Also remove the respective checks and tasks from AZDO yaml.

***NO_CI***
  • Loading branch information
josesimoes committed Jun 19, 2024
1 parent 62262de commit 4e6c5c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 155 deletions.
39 changes: 2 additions & 37 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,9 @@ jobs:
else
{
# build NOT from PR
Write-Host "Build NOT from PR, commit ID: $env:Build_SourceVersion"
# get PR associated with commit
$prUrl = "https://api.github.com/repos/$env:Build_Repository_Name/commits/$env:Build_SourceVersion/pulls"
$commit = Invoke-RestMethod -Uri $prUrl -ContentType "application/json" -Headers @{"Accept"="application/vnd.github.groot-preview+json"} -Method GET
if($commit -ne $null)
{
# there is a PR, check labels
$updateDependents = $commit.labels | where {$_.Name -eq 'CI: Update Dependents'}
if($updateDependents -ne $null)
{
$update = $true
}
}
Write-Host "Build NOT from PR, commit ID: $env:Build_SourceVersion"
}
}
# set variable to foward to jobs
echo "##vso[task.setvariable variable=RUN_UPDATE_DEPENDENTS;isOutput=true]$update"
}
name: BuildOptions
displayName: Evaluate build options
Expand Down Expand Up @@ -187,8 +169,6 @@ jobs:
value: 'Release'
- name: solution
value: 'nanoFirmwareFlasher.sln'
- name: run_update_dependents
value: $[dependencies.Check_Build_Options.outputs['BuildOptions.RUN_UPDATE_DEPENDENTS']]

steps:

Expand Down Expand Up @@ -473,21 +453,6 @@ jobs:
{ "label" : "Type: documentation", "displayName" : "Documentation", "state" : "closed" }
]
# update dependents
- task: PowerShell@2
condition: >-
or(
eq(variables['System.PullRequest.PullRequestId'], ''),
eq(variables['UPDATE_DEPENDENTS'], 'true'),
eq(variables['run_update_dependents'], 'true')
)
displayName: Update dependent tools
inputs:
targetType: filePath
filePath: azure-pipelines/update-dependents.ps1
env:
GH_TOKEN: $(GitHubToken)

##################################
# report build failure to Discord
- job: Report_Build_Failure
Expand Down
118 changes: 0 additions & 118 deletions azure-pipelines/update-dependents.ps1

This file was deleted.

0 comments on commit 4e6c5c3

Please sign in to comment.