diff --git a/Jenkinsfile b/Jenkinsfile index 277a2deec484b80d9143fd028d6562b7d348796a..020cd8bba9462102e7386b3accd51a15fc11cebe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" + } + } } }