You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Question
I have PR pipeline in which I build Dockerfiles, but only those which are changed. I get paths of changed files using git diff command. After PR is completed the source branch is merged but not deleted. I have release pipeline on main branch which is triggered after merge to main. This pipeline will perform same build only on changed files and then push those images to container registry.
But git diff in this pipeline wont work since agent is checked out on main branch. How can I get the same information in this pipeline? I looked up git log command in which I could do git diff against commitId but that wont work If someone else will finish their PR before me. The PR branch still exist, is it possible to somehow get name of this branch in the release pipeline?
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Task name
No response
Task version
No response
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Question
I have PR pipeline in which I build Dockerfiles, but only those which are changed. I get paths of changed files using git diff command. After PR is completed the source branch is merged but not deleted. I have release pipeline on main branch which is triggered after merge to main. This pipeline will perform same build only on changed files and then push those images to container registry.
But git diff in this pipeline wont work since agent is checked out on main branch. How can I get the same information in this pipeline? I looked up git log command in which I could do git diff against commitId but that wont work If someone else will finish their PR before me. The PR branch still exist, is it possible to somehow get name of this branch in the release pipeline?
The text was updated successfully, but these errors were encountered: