Skip to content

walkmod/jenkins-pipeline-shared

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-pipeline-shared

This is a Jenkins pipeline to run WalkMod. It allows to review the applied changes of walkmod or push when all tests are successful.

An example of pipeline that integrates this library is:

#!groovy
@Library('github.com/walkmod/jenkins-pipeline-shared@maven') _

pipeline {
   agent any

   stages {

   stage ('Fixing Release'){
      steps {
         walkmodApply(validatePatch: true,
         branch: env.BRANCH_NAME,
         alwaysApply: true,
         alwaysFail: true)
      }
   }
   stage ('Check conventions'){
      steps {
         sh "mvn pmd:check"
      }
   }
   stage('Build') {
      steps {
         sh "mvn package"
      }
   }
   stage('Results') {
      steps {
          archive 'target/*.jar'
      }
   }
   }
}

About

Jenkins pipeline library to run WalkMod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 50.6%
  • Groovy 49.4%