Commit d00d86bd authored by Patrik Dufresne's avatar Patrik Dufresne

Add auto-push to github

parent d1d9ff5a
Pipeline #484 failed with stages
in 1 minute and 5 seconds
......@@ -2,6 +2,7 @@ pipeline {
environment {
NEXUS = credentials("local-nexus")
GITLAB = credentials("gitlab-jenkins")
GITHUB = credentials("github")
}
parameters {
booleanParam(defaultValue: false, description: 'Generate a release build with a tagged version.', name: 'Release')
......@@ -47,5 +48,11 @@ pipeline {
addInfoBadge "v${version}"
}
}
stage('GitHubPush') {
steps {
sh "git push --force https://${GITHUB}@github.com/ikus060/cbc4j.git refs/remotes/origin/${BRANCH_NAME}:refs/heads/${BRANCH_NAME}"
sh "git push https://${GITHUB}@github.com/ikus060/cbc4j.git --tags"
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment