Skip to content

Instantly share code, notes, and snippets.

@rpau
Last active May 4, 2017 16:25
Show Gist options
  • Save rpau/f18376f4420e446e821d09dc6a9323eb to your computer and use it in GitHub Desktop.
Save rpau/f18376f4420e446e821d09dc6a9323eb to your computer and use it in GitHub Desktop.
Jenkinsfile fragment for walkmod
#!groovy
@Library('github.com/walkmod/jenkins-pipeline-shared@maven') _
pipeline {
agent any
stages {
stage ('Fixing Release'){
steps {
walkmodApply(
validatePatch: false,
branch: env.BRANCH_NAME,
alwaysApply: true,
alwaysFail: true)
}
}
stage('Build') {
steps {
sh "mvn package"
}
}
stage('Results') {
steps {
archive 'target/*.jar'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment