小编Cha*_*HAM的帖子

Jenkins只构建了一个被推送的分支

我想配置Jenkins只构建一个分支已被推送到github.我尝试在Branch Specifier留空

但在我提交/推动后,所有分支都将建成.我只需要一个刚刚提交/推送的分支.我怎样才能做到这一点?谢谢.

git github webhooks jenkins

7
推荐指数
1
解决办法
451
查看次数

路由53的资源记录集的多个IP地址

我正在研究aws route53,当我创建资源记录集时,可以将多个IP地址添加到记录集的值中。

在此处输入图片说明

这里多个IP地址的目的是什么?例如:我的域将路由到服务器1和服务器2。我试图停止服务器1并访问我的域,但它没有路由到服务器2。

这是什么问题?您能解释一下记录集值的多个IP地址吗?谢谢!

amazon-web-services amazon-route53

7
推荐指数
1
解决办法
3099
查看次数

我的 AWS CLI 无法使用 sudo

我有shell脚本,用途aws cli,我的脚本将被使用sudo执行(例如:sudo ./test.sh

但我收到了消息: Unable to locate credentials. You can configure credentials by running "aws configure".

其实,我并配置了两个sudo aws configureaws configure

我做错了什么?请帮忙。谢谢!

shell aws-cli

6
推荐指数
2
解决办法
6270
查看次数

"***请告诉我你是谁." 使用SSH密钥时

在我添加ssh密钥并检查它是否已成功验证后,我正在使用ssh密钥进行git.但我仍然无法提交代码

$ eval "$(ssh-agent -s)"
Agent pid 2599

$ ssh-add ~/id_rsa
Identity added: /home/vagrant/id_rsa (/home/vagrant/id_rsa)

$ssh -T git@github.com
Hi my-git-username! You've successfully authenticated, but GitHub does not provide shell access. 
Run Code Online (Sandbox Code Playgroud)

但我不能做出承诺

$ git commit -m "Develop Dockerfile for shopContainer"

*** Please tell me who you are.

Run

   git config --global user.email "you@example.com"
   git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address …
Run Code Online (Sandbox Code Playgroud)

git github

6
推荐指数
1
解决办法
2万
查看次数

docker-compose up 完成后显示消息成功

我在 docker-compse.yml 中运行许多服务。我想显示一条消息,让用户知道 docker-compose up 何时完成?我尝试使用命令回显消息,但我的容器以代码 0 退出

command: bash -c "echo Congratulation! You can use your containers now"
Run Code Online (Sandbox Code Playgroud)

无论如何,有没有办法让用户知道 docker-compose up 何时完成?非常感谢!

docker docker-compose

5
推荐指数
1
解决办法
5473
查看次数

aws cli 出现错误“请求中包含的安全令牌无效”

我之前做过aws configure并测试过它是否有效。但是今天没有用,我在尝试获取托管区域时遇到了错误

 $ aws route53 list-hosted-zones

 An error occurred (InvalidClientTokenId) when calling the ListHostedZones operation: The security token included in the request is invalid.
Run Code Online (Sandbox Code Playgroud)

我删除了 ~/.aws 并aws configure再次执行,但我仍然遇到相同的错误。能否请你帮忙?谢谢!

amazon-web-services aws-cli

4
推荐指数
2
解决办法
2万
查看次数