Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent any
- tools {
- jdk 'JDK 8'
- maven 'Maven 3.2.5'
- }
- options {
- timeout(time: 10, unit: 'MINUTES')
- }
- stages {
- stage('Parallel'){
- parallel {
- stage('JobLinux') {
- agent { label 'linux' }
- steps {
- timeout(3) {
- git branch: 'jenkinsuser4', credentialsId: 'd2079c73-fa0e-430e-b3c7-f1026a21f190', url: 'https://gitlab.com/AravindanM/sample.git'
- sh 'mvn -f maven-reactor/pom.xml clean package'
- junit '**/target/surefire-reports/*.xml'
- }
- }
- }
- stage('JobWindows') {
- agent { label 'windows' }
- steps {
- timeout(3) {
- git branch: 'jenkinsuser4', credentialsId: 'd2079c73-fa0e-430e-b3c7-f1026a21f190', url: 'https://gitlab.com/AravindanM/sample.git'
- bat 'mvn -f maven-reactor/pom.xml clean package'
- junit '**/target/surefire-reports/*.xml'
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement