Jenkins
Jenkins-Pipeline脚本易错汇总
· ☕ 3 分钟
问题 脚本中无法使用重定向,报错Bash: Syntax error: redirection unexpected。是因为ubuntu系统默认的shell为dash而非bash, dash不

Jenkins连接k8s的5s超时问题
· ☕ 8 分钟
问题 k8s客户端请求排队等待 构建执行失败时出现网络套接字异常,例如 1 Interrupted while waiting for websocket connection, you should increase the Max connections to Kubernetes API 1 2 Timed out waiting for websocket connection. You should increase the value of system property org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator.websocketConnectionTimeout currently set at <currentTimeout>

jenkins-pipeline-lib使用
· ☕ 1 分钟
重要 定义共享库 目录结构 1 2 3 4 5 6 7 8 9 10 11 12 (root) +- src # Groovy source files | +- org | +- foo | +- Bar.groovy # for org.foo.Bar class +- vars | +- foo.groovy # for global 'foo' variable | +- foo.txt # help for 'foo' variable +- resources # resource files (external libraries only) |

Jenkins-Pipeline使用举例
· ☕ 4 分钟
重点 能在DockerFile中做的,比如多阶段构建,就在Dockerfile中做。不能在Jenkinsfile中做太多特例化的事情,否则不好

jenkins集成LDAP
· ☕ 6 分钟
重要 ldap创建两个groupjenkins-admin和jenkins-manager。并分别将用户admin, operator各自分配到

基于Jenkins、gitlab、docker、helm和Kubernetes的CI/CD
· ☕ 5 分钟
重要 提前说明 开发人员提交代码到 Gitlab 代码仓库 通过 Gitlab 配置的 Jenkins Webhook 触发 Pipeline 自动构建 Jenkins 触发构建构建任务,根据 Pipeline 脚本定义分步骤构建 先进行代码静态分析,单元测