Merge pull request #110 from kemitix/jenkins-fix-git

jenkins: Remove redundant Prepare stage
This commit is contained in:
Paul Campbell 2018-03-06 17:48:56 +00:00 committed by GitHub
commit 1f35e96e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,8 @@
final String repoName = "kemitix-parent"
final String repoUrl = "git@github.com:kemitix/${repoName}.git"
final String mvn = "mvn --batch-mode --update-snapshots" final String mvn = "mvn --batch-mode --update-snapshots"
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Prepare') {
steps {
git url: repoUrl, branch: '**', credentialsId: 'github-kemitix'
}
}
stage('no SNAPSHOT in master') { stage('no SNAPSHOT in master') {
// checks that the pom version is not a snapshot when the current branch is master // checks that the pom version is not a snapshot when the current branch is master
// TODO: also check for SNAPSHOT when is a pull request with master as the target branch // TODO: also check for SNAPSHOT when is a pull request with master as the target branch