JavaCampus 빌드 파이프라인 YAML 코드 조각입니다. 나중에 복기를 위한 메모입니다.

 

아직까지는 JDK 17을 지원하지 않아 JDK 11을 사용중입니다.

pipelines-ci-maven-advanced-jdk-version.png

 

빌드 파이프라인 YAML 코드 조각입니다. 

pool:
  name: Azure Pipelines
  demands: maven

#Your build pipeline references an undefined variable named ‘Parameters.mavenPOMFile’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

steps:
- task: Maven@3
  displayName: 'Maven JavaCampus/pom.xml'
  inputs:
    mavenPomFile: '$(Parameters.mavenPOMFile)'
    jdkVersionOption: 1.11

- task: CopyFiles@2
  displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
  inputs:
    SourceFolder: '$(system.defaultworkingdirectory)'
    Contents: '**/*.jar'
    TargetFolder: '$(build.artifactstagingdirectory)'
  condition: succeededOrFailed()

- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifact: drop'
  inputs:
    PathtoPublish: '$(build.artifactstagingdirectory)'
  condition: succeededOrFailed()

 

 

 

Comments


Comments are closed