Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsolete pipeline build process, a possible new sample version in YAML #162

Open
nigul2009 opened this issue Jul 10, 2019 · 0 comments
Open

Comments

@nigul2009
Copy link

The new sample version in YAML:

# Gradle
# Build your Java project and run tests with Gradle using a Gradle wrapper script.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java

trigger:
- master

pool:
  vmImage: 'ubuntu-latest'

steps:
- task: Gradle@2
  inputs:
    workingDirectory: 'src/Backend/IntegrationService'
    gradleWrapperFile: 'src/Backend/IntegrationService/gradlew'
    gradleOptions: '-Xmx3072m'
    javaHomeOption: 'JDKVersion'
    jdkVersionOption: '1.8'
    jdkArchitectureOption: 'x64'
    publishJUnitResults: false
    testResultsFiles: '**/TEST-*.xml'
    tasks: 'build'
- task: Gradle@2
  inputs:
    gradleWrapperFile: 'src/Backend/OrderService/gradlew'
    workingDirectory: 'src/Backend/OrderService'
    tasks: 'build'
    publishJUnitResults: true
    testResultsFiles: '**/TEST-*.xml'
    gradleOptions: '-Xmx3072m'
    javaHomeOption: 'JDKVersion'
    jdkVersionOption: '1.8'
    jdkArchitectureOption: 'x64'
    sonarQubeRunAnalysis: false
- task: Gradle@2
  inputs:
    gradleWrapperFile: 'src/Clients/gradlew'
    workingDirectory: 'src/Clients'
    tasks: 'build'
    publishJUnitResults: false
    gradleOptions: '-Xmx3072m'
    javaHomeOption: 'JDKVersion'
    jdkVersionOption: '1.8'
    jdkArchitectureOption: 'x64'
    sonarQubeRunAnalysis: false
- task: CopyFiles@2
  inputs:
    SourceFolder: $(Build.SourcesDirectory)/src
    Contents: '**/build/libs/!(buildSrc)*.?ar'
    TargetFolder: $(build.artifactstagingdirectory)/drop
- task: CopyFiles@2
  inputs:
    SourceFolder: $(Build.SourcesDirectory)/deploy
    Contents: |
               *SSH-MRP-Artifacts.ps1
               *deploy_mrp_app.sh
               *MongoRecords.js
    TargetFolder: $(build.artifactstagingdirectory)/deploy
- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: $(build.artifactstagingdirectory)/drop
    ArtifactName: 'drop'
    publishLocation: 'Container'
- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: $(build.artifactstagingdirectory)/deploy
    ArtifactName: 'deploy'
    publishLocation: 'Container'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant