我保持触发器到 cloud_singlesignon 分支。
但是我的管道已保存到 azure-pipelines,并且 repo 的默认分支是 master。
但是 cloud_singlesignon 的结帐没有发生。
我观察到,它是从保存管道的分支(azure-pipelines)检出,而不是从触发器中的分支检出
知道如何解决这个问题吗?
我的管道:
trigger:
- cloud_singlesignon
resources:
- repo: self
pool:
vmImage: ubuntu-latest
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
wget https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz
pwd
ls -lRt
displayName: 'Download jdk'
- task: JavaToolInstaller@0
inputs:
versionSpec: '16'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'LocalDirectory'
jdkFile: 'OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz'
jdkDestinationDirectory: '/opt/jdkcustom'
cleanDestinationDirectory: true
- script: |
java -version
ls -lRt
pwd
ls $(Pipeline.Workspace)
git log --oneline | wc -l