bitbucket

Bitbucket authentication to use LibGit2Sharp

自闭症网瘾萝莉.ら 提交于 2021-01-27 18:35:22
问题 I used the CSharp.Bitbucket library to authenticate users with Bitbucket (https://github.com/scottksmith95/CSharp.Bitbucket). The authentication works fine, I get the token value and token secret values. I have alredy written a logic - with the help of LibGit2Sharp (https://github.com/libgit2/libgit2sharp) - to clone/pull/push the content of the users repo. It works fine if the user authenticates with GitHub. In that case I have to provide the value of the access token for username and an

How to create a pull request in a Bitbucket using api 1.0

浪子不回头ぞ 提交于 2021-01-27 17:48:47
问题 I am trying to create an automation pipeline and in that, I want to create a pull request in bitbucket from my jenkins job. I found some document where I can create a pull request using rest api. But that is for api 2.0. I have old bitbucket and I am not sure which api version I have to use. Thanks, 回答1: You can create a pull request in Bitbucket using the REST API 1.0 doing the following: curl -s --user USER:PASS --request PUT --data @- --header Content-Type:application/json https:/

gnutls_handshake() failed: Handshake failed GIT

雨燕双飞 提交于 2021-01-27 10:24:53
问题 Everything was working fine but suddenly I am getting the error: fatal: unable to access 'https://username@bitbucket.org/name/repo_name.git/': gnutls_handshake() failed: Handshake failed I am getting this on my computer as well as an EC2 instance. When I tried on another computer then it is working fine there. I have tried many solutions from Stackoverflow and from other forums. but nothing worked! On the computer, os is Linux mint 17 and on EC2 instance, Ubuntu 14.04.6 LTS. What can be the

gnutls_handshake() failed: Handshake failed GIT

老子叫甜甜 提交于 2021-01-27 10:24:40
问题 Everything was working fine but suddenly I am getting the error: fatal: unable to access 'https://username@bitbucket.org/name/repo_name.git/': gnutls_handshake() failed: Handshake failed I am getting this on my computer as well as an EC2 instance. When I tried on another computer then it is working fine there. I have tried many solutions from Stackoverflow and from other forums. but nothing worked! On the computer, os is Linux mint 17 and on EC2 instance, Ubuntu 14.04.6 LTS. What can be the

gnutls_handshake() failed: Handshake failed GIT

旧时模样 提交于 2021-01-27 10:23:10
问题 Everything was working fine but suddenly I am getting the error: fatal: unable to access 'https://username@bitbucket.org/name/repo_name.git/': gnutls_handshake() failed: Handshake failed I am getting this on my computer as well as an EC2 instance. When I tried on another computer then it is working fine there. I have tried many solutions from Stackoverflow and from other forums. but nothing worked! On the computer, os is Linux mint 17 and on EC2 instance, Ubuntu 14.04.6 LTS. What can be the

gnutls_handshake() failed: Handshake failed GIT

寵の児 提交于 2021-01-27 10:22:07
问题 Everything was working fine but suddenly I am getting the error: fatal: unable to access 'https://username@bitbucket.org/name/repo_name.git/': gnutls_handshake() failed: Handshake failed I am getting this on my computer as well as an EC2 instance. When I tried on another computer then it is working fine there. I have tried many solutions from Stackoverflow and from other forums. but nothing worked! On the computer, os is Linux mint 17 and on EC2 instance, Ubuntu 14.04.6 LTS. What can be the

Google cloud container builder not always triggering from bitbucket

感情迁移 提交于 2021-01-27 05:45:42
问题 I have build triggers set up in the Google Cloud Container Builder that are set to trigger on specific branches and use the cloudbuild.yml config in the repo. For about the first day that I pushed commits to any of these branches, it triggered a container build and completed successfully. Since then, the triggers have only worked intermittently. Sometimes Google Cloud Container Builder doesn't detect the commit at all (I have checked the commit is in bitbucket and the commit is on the right

Bitbucket Pipelines - How to use the same Docker container for multiple steps?

穿精又带淫゛_ 提交于 2021-01-26 09:28:59
问题 I have set up Continuous Deployment for my web application using the configuration below ( bitbucket-pipelines.yml ). pipelines: branches: master: - step: name: Deploy to production trigger: manual deployment: production caches: - node script: # Install dependencies - yarn install - yarn global add gulp-cli # Run tests - yarn test:unit - yarn test:integration # Build app - yarn run build # Deploy to production - yarn run deploy Although this works, I would like to increase the build speed by

shell中的2>/dev/null

三世轮回 提交于 2021-01-23 13:05:08
1、文件描述符 Linux系统预留可三个文件描述符:0、1和2,他们的意义如下所示: 0——标准输入(stdin) 1——标准输出(stdout) 2——标准错误(stderr) 标准输出——stdout 假设:在当前目录下,有且只有一个文件名称为123.txt的文件,这时我们运行这个命令【ls 123.txt】,就会获得一个标准输出stdout的输出结果:123.txt 错误输出——stderr 按照上面的假设,我们运行另一条命令【ls abc.txt】,这样我们就会获得一个标准错误stderr的输出结果“ls:无法访问abc.txt:没有那个文件或目录”。 2、重定向 重定向的符号有两个:>或>>,两者的区别是:前者会先清空文件,然后再写入内容,后者会将重定向的内容追加到现有文件的尾部。举个例子: (a)重定向标准输出stdout 对比没有添加重定向的操作,这条命令在使用之后并没有将123.txt打印到屏幕。在紧接的cat操作后,可以发现本来应该被输出的内容被记录到stdout.txt中。 (b)重定向标准错误stderr 对比没有添加重定向的操作,这条命令在使用之后并没有将123.txt打印到屏幕。在紧接的cat操作后,可以发现本来应该被输出的内容被记录到stderr.txt中。 以上执行结果如下: [root@node1 xiaoa]# ll total 0 -rw-r-

Is it impossible to checkout a different branch in Jenkinsfile?

独自空忆成欢 提交于 2021-01-20 17:51:33
问题 I have two branches on BitBucket: master and develop . I've also got a BitBucket Team Folder job configured on my Jenkins server to build that repository. On the develop branch there's the following Jenkinsfile: node { stage('Checkout') { checkout scm } stage('Try different branch') { sh "git branch -r" sh "git checkout master" } } When Jenkins runs it, the build fails when it attempts to checkout master : [Pipeline] stage [Pipeline] { (Try different branch) [Pipeline] sh [e_jenkinsfile-tests