--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c922166b-0ffd-4c5c-8a0e-c36a78025e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<declarative.png><scripted.png>
Hi,
#!groovy
stage 'Checkout'
node {
wrap([$class: 'TimestamperBuildWrapper']) {
checkout([$class: 'GitSCM', branches: [[name: 'findbugs']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/selste/simple-maven-project-with-tests']]])
}
}
stage 'Build'
node {
wrap([$class: 'TimestamperBuildWrapper']) {
withMaven(jdk: 'openjdk 1.8.0', maven: 'maven 3.5.0') {
sh 'mvn clean compile'
}
}
}
stage 'Test'
node {
wrap([$class: 'TimestamperBuildWrapper']) {
withMaven(jdk: 'openjdk 1.8.0', maven: 'maven 3.5.0') {
sh 'mvn test'
findbugs canComputeNew: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', pattern: '**/target/findbugsXml.xml', unHealthy: ''
}
}
}
pipeline {
agent any
tools {
maven 'maven 3.5.0'
jdk 'openjdk 1.8.0'
}
stages {
stage('Checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: 'findbugs']], userRemoteConfigs: [[url: 'https://github.com/selste/simple-maven-project-with-tests']]])
}
}
stage('Build') {
steps {
bat 'mvn clean compile'
}
}
stage('Test') {
steps {
bat 'mvn test'
findbugs canComputeNew: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', pattern: '**/target/findbugsXml.xml', unHealthy: ''
}
}
} }--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f9ec0e12-ca43-442d-94f3-8f3715de7ec2%40googlegroups.com.
Hi,