conditional/Jenkinsfile

24 lines
792 B
Text
Raw Normal View History

2018-02-22 22:37:51 +00:00
pipeline {
agent any
stages {
stage('Build') {
steps {
checkout([
$class: 'GitSCM',
branches: [[name: '**']],
extensions: [[$class: 'CleanBeforeCheckout']],
userRemoteConfigs: [[credentialsId: 'github-kemitix', url: 'git@github.com:kemitix/conditional.git']]
])
sh './mvnw clean install'
junit '**/target/surefire-reports/*.xml'
archiveArtifacts '**/target/*.jar'
}
}
stage('Deploy') {
steps {
2018-02-24 07:21:21 +00:00
sh './mvnw -Dskip-Tests=true -P release -B org.kohsuke:pgp-maven-plugin:sign -Dpgp.secretkey=keyring:id=6F626C45D8B32894'
}
}
2018-02-22 22:37:51 +00:00
}
}