I tried a few different things and this was the closest that I got:
image: node:4.6.0 pipelines: default: - step: caches: - node script: # Modify the commands below to build your repository. - npm install -g browserify - browserify src/main.js -o bundle.js - git config user.email **email** - git checkout -b temp - git remote add dist https://**username**:$PASSWORD@bitbucket.org/ragnarokgame/ragnarokgame.bitbucket.io.git - git add bundle.js - git add index.html - git add style.css - git commit -m "build [skip ci]" - git push dist master --force
(I've removed my username and email to post it here)
Any help is greatly appreciated as I'm very new to this.
If you want to push from REPO-A to REPO-B, first import your SSH keys (or create another user who have write access to REPO-B) to the SSH keys section of REPO-A repository settings.
Then you can add lines like this in your bitbucket-piplelines.yml file:
- date > test.txt
- apt-get update
- apt install --assume-yes --no-install-recommends git openssh-client
- git config --global user.name bitbucket-pipelines
- git config --global user.email firstname.lastname@example.org
- git clone email@example.com:REPO_OWNER/REPO-B.git
- cp test.txt REPO-B
- cd REPO-B
- git add -A
- git commit -m "Added new version of test.txt at $(date)"
- git push
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events