bitbucket

Jenkins access private BitBucket repo over SSH

て烟熏妆下的殇ゞ 提交于 2019-11-30 15:26:12
问题 I'm having trouble getting Jenkins to clone a git repository on BitBucket via SSH. It's failing with the following message: Building in workspace /var/lib/jenkins/workspace/test [ssh-agent] Using credentials git (git@bitbucket.org:<user>/<repo>.git) [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Java/JNR ssh-agent [ssh-agent] Started. Checkout:test / /var/lib/jenkins/workspace/test - hudson.remoting.LocalChannel@2b619bca Using strategy: Default Fetching changes from 1 remote

九个问题带你-从入门到熟悉 HTTPS

左心房为你撑大大i 提交于 2019-11-30 15:14:02
Q1: 什么是 HTTPS? BS: HTTPS 是安全的 HTTP HTTP 协议中的内容都是明文传输,HTTPS 的目的是将这些内容加密,确保信息传输安全。最后一个字母 S 指的是 SSL/TLS 协议,它位于 HTTP 协议与 TCP/IP 协议中间。 Q2: 你说的信息传输安全是什么意思 BS: 信息传输的安全有三个方面: 1、客户端和服务器直接的通信只 2、有自己能看懂,即使第三方拿到数据也看不懂这些信息的真实含义。 3、第三方虽然看不懂数据,但可以 XJB 改,因此客户端和服务器必须有能力判断数据是否被修改过。 4、客户端必须避免中间人攻击,即除了真正的服务器,任何第三方都无法冒充服务器。 很遗憾的是,目前的 HTTP 协议还不满足上述三条要求中的任何一条。 Q3: 这么多要求,一个一个去满足是不是很累? BS: 不累,第三个要求可以不用管 是的,我没开玩笑,你可以暂时别管第三个要求,因为它实际上隶属于第一个需求。我们都知道加密需要密码,密码不是天下掉下来,也得需要双方经过通信才能协商出来。所以一个设计良好的加密机制必然会防止第三者的干扰和伪造。等搞明白了加密的具体原理,我们自然可以检验是否满足:“任何第三者无法冒充服务器”这一要求。 Q4: 那怎么加密信息呢 BS: 使用对称加密技术 对称加密可以理解为对原始数据的可逆变换。比如 Hello 可以变换成 Ifmmp

How to enable / setup Dependency Caches for apt-get on BitBucket Pipelines

五迷三道 提交于 2019-11-30 14:47:21
问题 I am using the following code in my bitbucket-pipelines.yml files to remotely deply code to a staging server. image: php:7.1.1 pipelines: default: - step: script: # install ssh - apt-get update && apt-get install -y openssh-client # get the latest code - ssh user@domain.com -F ~/.ssh/config "cd /path/to/code && git pull" # update composer - ssh user@domain.com -F ~/.ssh/config "cd /path/to/code && composer update --no-scripts" # optimise files - ssh user@domain.com -F ~/.ssh/config "cd /path

Jenkins access private BitBucket repo over SSH

只愿长相守 提交于 2019-11-30 14:11:18
I'm having trouble getting Jenkins to clone a git repository on BitBucket via SSH. It's failing with the following message: Building in workspace /var/lib/jenkins/workspace/test [ssh-agent] Using credentials git (git@bitbucket.org:<user>/<repo>.git) [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Java/JNR ssh-agent [ssh-agent] Started. Checkout:test / /var/lib/jenkins/workspace/test - hudson.remoting.LocalChannel@2b619bca Using strategy: Default Fetching changes from 1 remote Git repository Fetching upstream changes from origin ERROR: Problem fetching from origin / origin -

Cannot push to Bitbucket via https anymore: git returns fatal error

余生颓废 提交于 2019-11-30 13:52:24
问题 I recently reinstalled windows and got the latest version of git. I created a new repo on Bitbucket and ran git remote add origin https://MYUSERNAME@bitbucket.org/MYUSERNAME/test.git then I ran git push -u origin --all however this gave me the error fatal: could not read Password for 'https://MYUSERNAME@bitbucket.org': No such file or directory before I would just get a prompt asking me for my username and password, and the push worked fine. I've tried reverting to Git 1.7.11 but this didn't

Git: unable to create symlink (File name too long)

坚强是说给别人听的谎言 提交于 2019-11-30 13:12:43
问题 I had pushed a project from Linux to Bitbucket and then cloned it on Windows. Turns out there were two symlinks, which appeared as textfiles on Windows. Since I knew where they should point to, I replaced them by copies of their destination files, committed and pushed. Now the Bitbucket repository looks okay when I look at it from their web interface. However a git clone on my Unix machine gives me two messages like: error: unable to create symlink ... (File name too long) and the two files,

Configuring egit with BitBucket

痴心易碎 提交于 2019-11-30 12:02:53
问题 I decided to try BitBucket and Git but I'm confused on how to configuring eGIT ( Eclipse GIT plugin ) to connect to Bitbucket's GIT repo. Anybody know any documentation on this? Thanks. Update : I gave up to solve the issue, and currently using SourceTree, which is a simple tool to deal with this. It's a free tool created by Attlasian ( the company that created Jira ). 回答1: I have found this url very useful http://wangpidong.blogspot.com.es/2012/05/how-to-use-bitbucket-with-egit-in.html 回答2:

How to enable / setup Dependency Caches for apt-get on BitBucket Pipelines

ⅰ亾dé卋堺 提交于 2019-11-30 11:59:00
I am using the following code in my bitbucket-pipelines.yml files to remotely deply code to a staging server. image: php:7.1.1 pipelines: default: - step: script: # install ssh - apt-get update && apt-get install -y openssh-client # get the latest code - ssh user@domain.com -F ~/.ssh/config "cd /path/to/code && git pull" # update composer - ssh user@domain.com -F ~/.ssh/config "cd /path/to/code && composer update --no-scripts" # optimise files - ssh user@domain.com -F ~/.ssh/config "cd /path/to/code && php artisan optimize" This all works, except that each time the pipeline is run, the ssh

Add existing project to BitBucket using Xcode

三世轮回 提交于 2019-11-30 11:37:12
问题 I keep getting an error when I try to commit my project files using Xcode. File -> Source Control -> Commit "The operation could not be performed because no valid working copies were found." "Please verify that your files are under source control and try again." This is an existing project that is NOT under source control. How do I get my project files under source control, using Xcode? EDIT: Answered my own question. Step 1) Restart Xcode Step 2) Choose connect to repo Step 3) Enter repo

pyinstaller updater with github / bitbucket private repos

对着背影说爱祢 提交于 2019-11-30 11:28:56
I'm attempting to integrate pyinstaller with updating feature for private repo’s. My question, is there a way to integrate pyupdater with free alternatives such as: bitbucket private repos? Pyupdater tends to work for public repo’s but I cannot workout how I can achieve this for private repo’s. Config file: class ClientConfig(object): PUBLIC_KEY = 'None' APP_NAME = 'dad123' COMPANY_NAME = 'dad123' UPDATE_URLS = ['ssh://git@bitbucket.org/Tysondogerz/ssh/download'] MAX_DOWNLOAD_RETRIES = 3 Creating an ssh is easy enough: ssh-keygen -t rsa -C "youremail@example.com" So… Main.py #!/usr/bin/env