Azure DevOps Deployment Pipeline – Code Reference – Part 03

Please check the code file reference here for Azure DevOps Build Pipeline!

Code Files:

Step 3: Power Platform Export Solution

Solution Name:

$(SolutionName)

Solution Output File

$(Build.StagingDirectory)\$(SolutionName)_Unmanaged.zip

Step 4: Power Platform Unpack Solution

Solution Input File:

$(Build.StagingDirectory)\$(SolutionName)_Unmanaged.zip

Target Folder to Unpack Solution

$(Build.SourcesDirectory)\$(SolutionName)\Unmanaged

Step 5: Publish Artifact: drop

Path to publish:

$(Build.SourcesDirectory)\$(SolutionName)\Unmanaged

Step 6: Command Line Script:

cd $(Build.SourcesDirectory)

# Set a per-project email address and username
git config user.email "dhruvin.shah@xyz.com"
git config user.name "Dhruvin Shah"

# Navigate to the main branch
git checkout -B main

# Update the local version of a repository from a remote
git pull

# Add all files to the Git repository
git add --all

# Record the changes in the repository
git commit -m "Updated the solution"

# Authenticate against a git repository in a build process
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin main

Leave a Reply

%d bloggers like this: