Azure DevOps Pipeline - Tomcat Deployment

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 2

  • @crudsinfotechng8127
    @crudsinfotechng8127  9 หลายเดือนก่อน

    Pipeline YML file:
    -------------------------------------------------------------------------------------------------------------------------------------------------------------
    # Maven
    # Build your Java project and run tests with Apache Maven.
    # Add steps that analyze code, save build artifacts, deploy, and more:
    # docs.microsoft.com/azure/devops/pipelines/languages/java
    trigger:
    - master
    pool:
    vmImage: ubuntu-latest
    steps:
    - task: Maven@3
    inputs:
    mavenPomFile: 'pom.xml'
    mavenOptions: '-Xmx3072m'
    javaHomeOption: 'JDKVersion'
    jdkVersionOption: '1.11'
    jdkArchitectureOption: 'x64'
    publishJUnitResults: true
    testResultsFiles: '**/surefire-reports/TEST-*.xml'
    goals: 'package'
    - task: TomcatDeployment@1
    inputs:
    TomcatUrl: 'YOUR-JENKINS-URL'
    Username: 'JENKINS-ADMIN-USERNAME'
    Password: 'JENKINS-ADMIN-PASSWORD'
    Warfile: 'target/NAME-OF-YOUR-WAR-FILE'
    Context: '/azure-deploy'
    ServerVersion: '7OrAbove'
    -------------------------------------------------------------------------------------------------------------------------------------------------------------

  • @digvijaysingh5006
    @digvijaysingh5006 3 หลายเดือนก่อน +1

    very straight forward, thanks !!