随笔分类 -  DevOps

摘要:参考链接:https://www.cnblogs.com/deeptester-vv/p/14777422.html 阅读全文
posted @ 2022-02-17 19:44 代码诠释的世界 阅读(80) 评论(0) 推荐(0) 编辑
摘要:1. 测试用例有失败时,会导致构建结果为unstable, 这个没啥关系 2. unstable https://github.com/jenkinsci/allure-plugin/issues/13 https://www.icode9.com/content-4-784901.html 阅读全文
posted @ 2022-02-17 19:33 代码诠释的世界 阅读(342) 评论(0) 推荐(0) 编辑
摘要:1. buildResult是针对整个Stages过程而言,stageResult是针对该Stage而言,而无论buildResult还是stageResult他们都有以下状态 always 不论当前状态是什么,都执行changed 只要当前完成状态与上一次完成状态不同就执行fixed 上一次完成状 阅读全文
posted @ 2022-02-17 19:27 代码诠释的世界 阅读(842) 评论(0) 推荐(0) 编辑
摘要:1. 流水线语法 node { stage('Example') { if (env.BRANCH_NAME == 'master') { echo 'I only execute on the master branch' } else { echo 'I execute elsewhere' } 阅读全文
posted @ 2022-02-17 17:13 代码诠释的世界 阅读(2103) 评论(0) 推荐(0) 编辑
摘要:1. 语法 pipeline { agent { node { // 节点名称 label 'remote_node1' customWorkspace "${env.JOB_NAME}/${env.BUILD_NUMBER}" } } } 参考:官网资料 阅读全文
posted @ 2022-02-16 21:01 代码诠释的世界 阅读(868) 评论(0) 推荐(0) 编辑
摘要:1. 安装postfixadmin https://www.cnblogs.com/fireblackman/p/15799597.html 2. 安装postgres https://www.cnblogs.com/fireblackman/p/15740550.html 3. 安装postfix 阅读全文
posted @ 2022-02-16 20:57 代码诠释的世界 阅读(1266) 评论(0) 推荐(0) 编辑
摘要:1、 解决方式 # 使用下列方式安装 python3 -m pip install xxx 参考链接:https://blog.csdn.net/sandalphon4869/article/details/107693774 阅读全文
posted @ 2022-02-16 20:51 代码诠释的世界 阅读(3422) 评论(0) 推荐(0) 编辑
摘要:1. 使用deb包安装 # 32位 wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb sudo dpkg -i google-chrome-stable_current_i386.deb # 6 阅读全文
posted @ 2022-02-16 20:43 代码诠释的世界 阅读(149) 评论(0) 推荐(0) 编辑
摘要:1. 新建流水线项目 2. 配置jenkins流水线项目触发方式为Opened Merge Request Events 配置目标分支和生成token 3. gitlab添加jenkins项目的webhook 强制拦截配置 4. 配置流水线 pipeline { agent { node { // 阅读全文
posted @ 2022-02-14 18:06 代码诠释的世界 阅读(1768) 评论(0) 推荐(0) 编辑
摘要:1. 使用cleanWs stage('Clean') { steps { cleanWs( cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanW 阅读全文
posted @ 2022-02-14 17:23 代码诠释的世界 阅读(2975) 评论(0) 推荐(0) 编辑
摘要:1. 处理方法 sudo apt update sudo apt upgrade sudo apt dist-upgrade sudo apt autoremove sudo do-release-upgrade 2. 提示截图 阅读全文
posted @ 2022-02-14 16:07 代码诠释的世界 阅读(462) 评论(0) 推荐(0) 编辑
摘要:1. 使用git merge方法合并master分支代码到自己分支 git checkout master # 切换本地分支为master git pull # 更新本地分支master代码为远程最新代码 git checkout [自己的分支名] # 切换到自己的分支 git merge mast 阅读全文
posted @ 2022-02-14 15:51 代码诠释的世界 阅读(13602) 评论(0) 推荐(0) 编辑
摘要:1. 查询安装包版本 网站:https://packages.ubuntu.com/ 2. apt-cache madison <<package name>>查询 其他操作 apt-cache madison vimapt-cache policy vimapt-cache showpkg vim 阅读全文
posted @ 2022-02-14 15:26 代码诠释的世界 阅读(1363) 评论(0) 推荐(0) 编辑
摘要:1. 查看nginx错误日志 connect() failed (111: Connection refused) while connecting to upstream connect() to unix:/run/php/php7.2-fpm.sock failed (2: No such f 阅读全文
posted @ 2022-02-14 15:03 代码诠释的世界 阅读(725) 评论(0) 推荐(0) 编辑
摘要:1. 场景 升级18.04到20.04之后,服务起不来 2. 解决办法 重新安装php7.2-fpm 3.重启 sudo service php7.2-fpm restart 阅读全文
posted @ 2022-02-14 14:46 代码诠释的世界 阅读(730) 评论(0) 推荐(0) 编辑
摘要:1. 重置方法 netsh winsock reset 2. 重启电脑, ###### 注意保存文件 shutdown -r -t 30 阅读全文
posted @ 2022-02-08 11:30 代码诠释的世界 阅读(531) 评论(0) 推荐(0) 编辑
摘要:1. 今天踩了一个大坑,IDE的文件都没commit,然后pull代码的时候,没注意,直接reset了 2. 处理方法 git fsck --lost-found 找到lost-found/other文件, 然后使用编辑器打开, 查看文件内容, 虽然文件不是自己最新的, 但是还是很有用的, 找回了一 阅读全文
posted @ 2022-01-28 20:25 代码诠释的世界 阅读(501) 评论(0) 推荐(0) 编辑
摘要:1. 下载链接 # https://github.com/allure-framework/allure2/releases# allure文档:https://docs.qameta.io/allure/ 2. 安装 ubuntu sudo dpkg -i allure_2.17.2-1_all. 阅读全文
posted @ 2022-01-18 19:55 代码诠释的世界 阅读(449) 评论(0) 推荐(0) 编辑
摘要:1. 在哪里 apt-get install apps 这样的命令,一般会将下载文件放在 /var/cache/apt/archives目录下,然后安装。 2. 如何清理 apt-get clean删除/var/cache/apt/archives/ 和 /var/cache/apt/archive 阅读全文
posted @ 2022-01-14 11:10 代码诠释的世界 阅读(1794) 评论(0) 推荐(0) 编辑
摘要:1. 更新系统 sudo apt-get update sudo apt-get dist-upgrade sudo apt-get autoremove 2. 安装postfixadmin sudo apt install php7.2-fpm php7.2-cli php7.2-imap php 阅读全文
posted @ 2022-01-13 20:38 代码诠释的世界 阅读(451) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示