Jenkins结合阿里云code或gitlab

IT
IT
IT
335
文章
1
评论
2020年3月23日01:02:01 评论 1,286 2184字阅读7分16秒

添加Jenkins这台机器的私钥到code里面

[xiaoxin@iZ2zee6df2m25shq6mfaw5Z .ssh]$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/pkKrpLRn3Yvs0W/bTISaerxeK5Sc1nVnVGspMe7pSs/KMn3ydmyAkq/95llh3N5Uj4dFDOq9t1RN1Fu++zeXS9gbsXHxmdxgsTu8GGAjEORPXIlgGF2kF7Et3w5akuXELJkJtBs6lICdmKqCVdHhgm42GiH6lYkHX/JbwUXpYAVR1rOjvpnYqWWXUVqE7XJ2tFbmaTKsfnAoqsI2RWH5zmouFQIFOCBKZWt3pSUmlJV/MgA7DasEU2CT2fPpBuNNwxWHZCHQsHJVMCr9cik/PqcVzkroh7dQcd+SVvcpAELMOH7N6T9cLlYjWQWGN+MJ xiaoxin@iZ2zee6df2m25shq6mfaw

添加到code里面

Jenkins结合阿里云code或gitlab

添加凭据

Jenkins结合阿里云code或gitlab

添加账号username和key

[xiaoxin@iZ2zee6df2m25shq6mfaw5Z .ssh]$ cat id_rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAv6ZCq6S0Z92L7NFv20yEmnq8XiuUnNZ1Z1RrKTHu6UrPyjJ9
8nZsgJKv/eZZYdzeVI+HRQzqvbdUTdRbvvs3l0vYG7F7J3QlaCwQDx8ZncYLE7vB
hgIxDkT1yJYBhdpBexLd8OWpLlxCyZCbQbOpSAnZiqglXR4YJuNhoh+pWJB1/yW8
FF6WAFUdazo76Z2Klll1FahO1ydrRW5mkyrH5wKKrCNkVh+c5qLhUCBdrqlaVfwG
DTggSmVrd6UlJpSVfzIAOw2rBFNgk9nz6QbjTcMVh2Qh0LByVTAq/XIpPz6nFc5K
6Ie3UHHfklb3KQBCzDh+zek/XC5WI1kFhjfjCQIDAQABAoIBACmamzCNwcgmdSDE
2oZ91u9+I3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VETrQ5Ez+VayfLD5I
c5cgCX7sNXMKHFvMbKfhMhVvCXsrNLhnJ+8+XDouWxhIeVb68Xeqz0EocCYxlmQ3
uSCxUC6v8poSSL5gxbAh+Xfo/OT2x0Da920/2v1nG6vT2GJRqWlTLQ==
-----END RSA PRIVATE KEY-----

Jenkins结合阿里云code或gitlab

继续阅读
  • 我的QQ
  • QQ扫一扫
  • weinxin
  • 我的头条
  • 头条扫一扫
  • weinxin
IT
  • 本文由 发表于 2020年3月23日01:02:01
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
jenkins项目和插件迁移 Jenkins-install

jenkins项目和插件迁移

迁移插件 一般Jenkins的项目在如下目录中,根据自己的环境信息索取。 # pwd /var/lib/jenkins/plugins 整体打包里面的内容 # tar czvf jenkins.tar...
Jenkins启动报错解决 Jenkins-install

Jenkins启动报错解决

误更新Jenkins权限管理插件,导致Jenkins重启直接报错! 报错内容如下(有部分删减): com.thoughtworks.xstream.mapper.CannotResolveClassE...
Jenkins升级 Jenkins-install

Jenkins升级

如题,Jenkins有新版本提示,该如何升级。 定位jenkins.war文件的安装目录 $ ps -aux | grep jenkins jenkins 19696 0.2 12.7 4692028...