Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
bc355b0
Merge pull request #2904 from microsoftgraph/dev
timayabi2020 Aug 13, 2024
110a67a
Merge pull request #2939 from microsoftgraph/dev
Ndiritu Sep 4, 2024
d989cc1
Merge branch 'main' into merge-to-main-06-09-2024
timayabi2020 Sep 6, 2024
35077ac
Merge pull request #2947 from microsoftgraph/merge-to-main-06-09-2024
timayabi2020 Sep 9, 2024
d380bf1
Merge branch 'main' into merge-to-main-02-10-2024
timayabi2020 Oct 2, 2024
c567797
Merge pull request #2983 from microsoftgraph/merge-to-main-02-10-2024
timayabi2020 Oct 2, 2024
42ef8cb
Merge branch 'main' of https://github.com/microsoftgraph/msgraph-sdk-…
Nov 20, 2024
980929d
Merge pull request #3033 from microsoftgraph/merge-to-main-20-11-2024
timayabi2020 Nov 20, 2024
9adefff
Merge branch 'main' into merge-to-main-19-02-2025
timayabi2020 Feb 19, 2025
51cbfc6
Merge pull request #3145 from microsoftgraph/merge-to-main-19-02-2025
timayabi2020 Feb 19, 2025
15ac92a
Merge branch 'main' into merge-to-live-24-02-2025
timayabi2020 Feb 24, 2025
62b30a3
Merge branch 'dev' of https://github.com/microsoftgraph/msgraph-sdk-p…
Feb 24, 2025
a2be062
Merge pull request #3169 from microsoftgraph/merge-to-live-24-02-2025
timayabi2020 Feb 25, 2025
3ee8b2a
Merge branch 'main' of https://github.com/microsoftgraph/msgraph-sdk-…
Apr 16, 2025
06451d1
Merge pull request #3275 from microsoftgraph/merge-to-main-16-04-2025
timayabi2020 Apr 17, 2025
c98dc7e
Merge branch 'main' of https://github.com/microsoftgraph/msgraph-sdk-…
timayabi2020 May 9, 2025
06909d4
Merge pull request #3314 from microsoftgraph/merge-to-main-09-05-2025
timayabi2020 May 9, 2025
5afb395
Merge remote-tracking branch 'origin/main' into merge-to-main-07-08-2025
ramsessanchez Jul 9, 2025
0c75cab
Merge pull request #3357 from microsoftgraph/merge-to-main-07-08-2025
MIchaelMainer Jul 9, 2025
3a10773
set version to 2.29.1
ramsessanchez Jul 16, 2025
6d4f35d
merge main into dev
ramsessanchez Jul 16, 2025
0e61a72
Merge pull request #3365 from microsoftgraph/merge-to-main-07-16-2025
ramsessanchez Jul 16, 2025
0ff35fa
Merge to main 08 18 2025 (#3382)
ramsessanchez Aug 18, 2025
e4c0630
Merge to main 09 29 2025 (#3414)
ramsessanchez Sep 30, 2025
47660d3
Merge to main 10 17 2025 (#3428)
MIchaelMainer Oct 17, 2025
e29d86a
Merge to main for 2.33 release (#3459)
ramsessanchez Dec 8, 2025
fa1577d
Separate CI-Build and Sdk-Release pipelines (#3462)
ramsessanchez Dec 11, 2025
855e817
Feat/force wam (#3472)
ramsessanchez Dec 19, 2025
3cacac8
chore(ci): permit reading from npm (#3477)
gavinbarron Dec 20, 2025
c51bcb9
chore(ci): set network isoloation to permissive (#3478)
gavinbarron Dec 20, 2025
f72c6d5
Updating examples
Dec 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
137 changes: 2 additions & 135 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ parameters:
default: true
- name: Pack
type: boolean
default: true
default: false
- name: Sign
type: boolean
default: true
Expand All @@ -29,22 +29,16 @@ variables:
GitUserName: "Microsoft Graph DevX Tooling"
REGISTRY: 'msgraphprodregistry.azurecr.io'
IMAGE_NAME: 'public/microsoftgraph/powershell'
PREVIEW_BRANCH: 'refs/heads/main' # Updated to target your branch

trigger:
branches:
include:
- main
- dev
tags:
include:
- v*

pr:
branches:
include:
- main
- dev
resources:
repositories:
- repository: 1ESPipelineTemplates
Expand Down Expand Up @@ -111,131 +105,4 @@ extends:
FolderPath: "$(Build.ArtifactStagingDirectory)"
Pattern: "Microsoft.Graph*.nupkg"

- template: .azure-pipelines/common-templates/security-post-checks.yml@self
- stage: 'Deploy_to_Internal_Feed'
dependsOn: stage
jobs:
- deployment: 'DeployToInternalFeed'
displayName: 'Deploy to Internal Feed'
environment: 'PowerShellInternalFeed'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifacts'
inputs:
buildType: 'current'
targetPath: '$(System.DefaultWorkingDirectory)'
- task: 1ES.PublishNuget@1
displayName: 'Publish NuGet to feed'
inputs:
useDotNetTask: false
packageParentPath: '$(System.DefaultWorkingDirectory)'
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
publishVstsFeed: ${{ parameters.InternalFeed }}
nuGetFeedType: internal
allowPackageConflicts: true
- stage: 'Deploy_to_PsGallery'
dependsOn: stage
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) # Only deploy to PSGallery on main branch
jobs:
- deployment: 'DeployToPowerShellGallery'
displayName: 'Deploy to PowerShell Gallery'
environment: 'PowerShellGallery'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifacts'
inputs:
buildType: 'current'
targetPath: '$(System.DefaultWorkingDirectory)'
- task: 1ES.PublishNuget@1
displayName: 'Publish NuGet to feed'
inputs:
useDotNetTask: false
packageParentPath: '$(System.DefaultWorkingDirectory)'
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'microsoftgraph PowerShell Gallery connection'

- stage: PushDockerImageToRegistry
condition: and(or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), eq(variables['Build.SourceBranch'], variables['PREVIEW_BRANCH'])), not(contains(variables['Build.SourceBranch'], '-preview')))
dependsOn: stage
displayName: 'Push docker image'
jobs:
- job: PushDockerImage
displayName: 'Push docker image'
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: ubuntu-latest
os: linux
steps:
- checkout: self

# Display the contents of the Build.SourcesDirectory
- bash: |
echo "Build.SourcesDirectory: $(Build.SourcesDirectory)"
ls -la $(Build.SourcesDirectory)
displayName: 'List contents of Build.SourcesDirectory'

- task: AzureCLI@2
displayName: "Log in to Azure Container Registry"
inputs:
azureSubscription: 'ACR Images Push Service Connection' # service connection
scriptType: 'bash'
scriptLocation: 'inlineScript'
'inlineScript': |
az acr login --name $(REGISTRY)
- powershell: |
$date = Get-Date -Format "yyyyMMdd"
Write-Host "##vso[task.setvariable variable=currentDate]$date"

- script: |
docker run --privileged --rm tonistiigi/binfmt --install all
displayName: 'Enable multi-platform builds'

- script: |
docker buildx create --use --name mybuilder
displayName: 'Set up Docker BuildX'

- powershell: |
$version = $Env:BUILD_SOURCEBRANCH.replace("refs/tags/", "")
Write-Output "##vso[task.setvariable variable=version]$version"
displayName: 'Get truncated run number'

- bash: |
echo "Build Number: $(Build.BuildNumber)"
# Extract the last 3 characters for the run number
runnumber=$(echo "$(Build.BuildNumber)" | grep -o '[0-9]\+$')
echo "Extracted Run Number: $runnumber"

# If extraction fails, set a default
if [ -z "$runnumber" ]; then
echo "Extraction failed, using default value"
runnumber=$(date +"%S%N" | cut -c1-3)
echo "Generated fallback run number: $runnumber"
fi

# Set the variable for later steps
echo "##vso[task.setvariable variable=RUNNUMBER]$runnumber"
echo "##vso[task.setvariable variable=RUNNUMBER;isOutput=true]$runnumber"
displayName: 'Get truncated run number'
name: getrunnumber

- bash: |
echo "Building docker images"
# Format the date to be compatible with Docker tags
formatted_date=$(date +"%Y%m%d%H%M%S")
docker buildx build \
--platform linux/amd64 \
--push \
-t "$(REGISTRY)/$(IMAGE_NAME):latest" \
-t "$(REGISTRY)/$(IMAGE_NAME):$formatted_date.$RUNNUMBER" \
"$(Build.SourcesDirectory)"
displayName: 'Build and push docker images'

- template: .azure-pipelines/common-templates/security-post-checks.yml@self
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ steps:
- template: ../common-templates/esrp/codesign.yml
parameters:
FolderPath: "$(System.DefaultWorkingDirectory)/src"
Pattern: "Microsoft.Graph.*.private.dll, Microsoft.Graph.*.psm1, Microsoft.Graph.*.psd1, Microsoft.Graph.*.format.ps1xml, ProxyCmdletDefinitions.ps1, load-dependency.ps1"
Pattern: "Microsoft.Graph.*.private.dll, Microsoft.Graph.*.psm1, Microsoft.Graph.*.psd1, Microsoft.Graph.*.format.ps1xml, ProxyCmdletDefinitions.ps1, load-dependency.ps1, Unprotect-SecureString.ps1, *-Mg*EntitlementManagement*.ps1"

- task: PowerShell@2
displayName: "Validate Authenticode Signature"
Expand Down
Loading