我正在使用Azure DevOps,并且想将管道分成两个不同的作业:
我想这会是
- job: build
- script: |
mvn -B deploy -DaltDeploymentRepository=staging::default::file://$(Build.ArtifactStagingDirectory)
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
- deployment: deploy
environment: snapshots
strategy:
runOnce:
deploy:
steps:
- task: DownloadPipelineArtifacts
- script: |
mvn -B deploy:deploy -Ddeploy-repo=$(StagingArtifacts) # ????