I created jenkins job which creates new branch and then push it to remote repo. Script look like this:
VERSION=0.1
if [ "$BRANCH_SELECTOR" == "master" ]; then
git checkout -b release-$VERSION
git push -u origin release-$VERSION
fi
Jenkins failes and there is a console output:
+ git checkout -b release-0.1
Gewechselt zu einem neuem Branch 'release-0.1'
+ git push -u origin release-0.1
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository
Whats wrong here ? I also mention that i tried
+ git push -u origin release-0.1
and
+ git push -u origin master:release-0.1
Still doesn't work.