diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..9a6aa98 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +pipeline { + agent any + stages { + stage('build') { + parallel { + stage('build') { + steps { + acceptGitLabMR(mergeCommitMessage: 'll') + } + } + stage('test') { + steps { + sh 'ls' + addGitLabMRComment(comment: 'bbb') + } + } + } + } + stage('sonar') { + steps { + sh 'ls' + } + } + } +} \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..9ffb016 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- main + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package'