Forum Discussion
Devendar123
Sep 03, 2022Copper Contributor
Azure build pipeline (Power apps solution) run successfully but I cant see files in Repo.
Azure build pipeline run successfully but Artifact (folder and files) not displayed in Repo. This is pipeline for Power apps solutions I have mentioned the following paths for Solution export and im...
LJStewart
Sep 09, 2022Copper Contributor
Sound like you need another step to commit it back into the repo.
Something like:
- script: |
echo Committing all changes
git config user. Email "email address removed for privacy reasons"
git config user.name "Automatic Build"
git checkout %BUILD_SOURCEBRANCHNAME%
git add --all
git commit -m "Automatic solution commit $(CurrentDate) [skip ci]"
git status
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" pull
git status
echo Push code to repository
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin %BUILD_SOURCEBRANCHNAME%
displayName: 'Commit to Source Control'
Something like:
- script: |
echo Committing all changes
git config user. Email "email address removed for privacy reasons"
git config user.name "Automatic Build"
git checkout %BUILD_SOURCEBRANCHNAME%
git add --all
git commit -m "Automatic solution commit $(CurrentDate) [skip ci]"
git status
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" pull
git status
echo Push code to repository
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin %BUILD_SOURCEBRANCHNAME%
displayName: 'Commit to Source Control'