![]() ![]() LAST_SHA=$(az pipelines build list -branch $(Build.SourceBranchName) -definition-ids $(System.DefinitionId) -result succeeded -top 1 -query ".triggerInfo.\"ci.sourceSha\"")Įcho "Last successful commit SHA: $LAST_SHA"Įcho "#vso$LAST_SHA"ĭisplayName: 'Get last successful commit SHA' env: AZURE_DEVOPS_EXT_PAT: $(System. One of the biggest issues was specific to Yarn workspaces. Possibly with some suggestions as to desired approach.Trigger: - main pr: - main variables: CI: 'true' NX_BRANCH: $(Build.SourceBranchName) DEFAULT_BASE_SHA: $(git rev-parse HEAD~1) HEAD_SHA: $(git rev-parse HEAD) jobs: - job: main pool: vmImage: 'ubuntu-latest' steps: # Set Azure Devops CLI default settings - bash: az devops configure -defaults organization=$(System.TeamFoundationCollectionUri) project=$(System.TeamProject) displayName: 'Set default Azure DevOps organization and project' # Get last successfull commit from Azure Devops CLI - bash: |
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |