diff --git a/Jenkinsfile b/Jenkinsfile index 6e87fcf55..4f230ec04 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -181,7 +181,8 @@ def bumpVersion() { sh "build/build.sh" fromVersion = getCliVersion("./jf") sh "build/bump-version.sh $fromVersion $RELEASE_VERSION" - sh "git checkout $masterBranch" + sh "git commit -m \"Bump version from $fromVersion to $RELEASE_VERSION\"" + sh "git push \"https://$GITHUB_ACCESS_TOKEN@github.com/jfrog/jfrog-cli.git\"" } } } diff --git a/build/bump-version.sh b/build/bump-version.sh index 5b8f8a493..47bd54b51 100755 --- a/build/bump-version.sh +++ b/build/bump-version.sh @@ -74,7 +74,3 @@ replaceVersion "build/npm/v2-jf/package.json" "\"version\": \"$fromVersion\"," " # Print success message if validation and replacement pass echo "Version bumped successfully." - -git commit -m "Bump version from $fromVersion to $toVersion" -git push -echo "Version bump pushed to git."