随笔分类 - cicd
摘要:环境 centos7 + jenkins2.361.3(裸机安装) + gitlab(裸机安装) + harbor(k8s安装) 注意 在裸机安装jenkins高版本的时候需要安装java11 在实现cicd的时候git版本需要高一点的,我的是2.31.1 安装完jenkins,需要的配置 1.需要
阅读全文
摘要:先简单介绍一下gitlab-runner GitLab Runner 是一个与 GitLab CI/CD 一起使用以在管道中运行作业的应用程序。 您可以选择在您拥有或管理的基础设施上安装GitLab Runner 应用程序。如果这样做,出于安全和性能原因,您应该将 GitLab Runner 安装在
阅读全文
摘要:def getHost(){ def remote = [:] remote.name = 'test' remote.host = '1.1.1.1' remote.user = 'root' remote.password = 'password' remote.allowAnyHosts =
阅读全文
摘要:示例1:pipeline 所有有效的声明式流水线必须包含在一个 pipeline 块中, 比如: pipeline { /* insert Declarative Pipeline here */ } 示例2:agent agent 部分指定了整个流水线或特定的部分, 将会在Jenkins环境中执行
阅读全文
摘要:第一步,安装tomcat yum install tomcat -y 第二步,去官网下载最新的war包 第三步,放到tomcat中的webapps下 mv jenkins.war /usr/share/tomcat/webapps/ 第四步,修改tomcat字符集,并且重启tomcat vim /e
阅读全文