jenkins file
jenkins上发布项目后将文件推送到另一台服务器build镜像
1、配置jenkins 1)主页面点击manage jenkins 2) 选择SystemConfiguration 3) 配置服务器信息,注意密码一定要输入对,还有端口有,一般是默认的22端口,但有的不是默认的22端口,配置好后记得点一下test看是否连接成功 4)配置插件:publish-ove ......
Docker 安装 Jenkins 系统
超级简单 原地址:https://my.oschina.net/sh021/blog/5055469 1、环境平台 系统及工具就不多介绍说明了,大家应该都比较了解熟悉了,我就直接实操过程截图记录说明。 虚拟机系统 Ubuntu 18.04.5 启动 docker 查看安装的版本信息 # docker ......
Jenkins+sonar+jacoco 实现代码扫描,接口测试,代码覆盖
sonar 配置参照往期博文 jacoco+自动化测试 参照往期博文 sonar + jacoco 覆盖报告配置 # jacoco 生成的exec文件 sonar.jacoco.reportPaths=/home/jacoco/lXXXXXXXX/lXXXXXXXXX.exec # 代码覆盖率插件s ......
Jenkins 配置MAC节点,编译iOS项目
文章主要介绍Jenkins主从节点配置,mac机配置slave节点。从机已经搭建android和ios编译环境为例,介绍Jenkins节点配置。 环境介绍 主机环境介绍:主机Jenkins运行在tomcat中。Jenkins本身安装的环境仅包括java环境和gradle环境。 # set java ......
如何在Jenkins Pipeline中接入SonarQube进行代码扫描
随着软件开发项目的不断增多,代码质量的管理变得愈发重要。SonarQube是一个开源的代码质量管理平台,它可以帮助开发团队发现和修复代码中的各种问题,从而提高代码的质量。而Jenkins是一个广泛使用的持续集成和持续交付工具,它可以自动化构建、测试和部署应用程序。本文将介绍如何在Jenkins Pi ......
smbclient: relocation error: /usr/lib64/samba/libsamdb-common-samba4.so: symbol ldb_msg_element_add_value version LDB_2.0.12 not defined in file libldb.so.2 with link time reference
smbclient: relocation error: /usr/lib64/samba/libsamdb-common-samba4.so: symbol ldb_msg_element_add_value version LDB_2.0.12 not defined in file libld ......
Jenkins拉取Git代码的两种方式
Jenkins拉取Git代码依照Git clone的分类有两种,一种是通过SSH,一种是HTTPS。 下面分别说下具体的配置 HTTPS方式 即使用 git clone https://git.xxx.com/xx/xxx.git 的方式获取,步骤如下: Jenkins相应Job的配置--源码管理中 ......
Go - Saving an Image to a File
Problem: You have an image and want to save it to a file. Solution: Use the Encode method of the correct file format package (e.g., png.Encode for PNG ......
Go - Loading an Image from a File
Problem: You want to load an image from an image file. Solution: Use image.Decode to decode data from an image file into an implementation of image.Im ......
[902] Get the current file's directory of CMD batch scripts
In a batch file, you can use the %~dp0 special variable to get the directory of the currently executing batch file. Here's how you can do it: @echo of ......
[899] Save a dictionary as a file (JSON)
In Python, you can save a dictionary as a file using various methods, such as JSON, Pickle, or CSV. Here, I'll show you how to save a dictionary as a ......
Java - File 类和输入输出流的关系
File 类 File 是文件和目录的抽象表示。创建、删除、重命名、检查文件或目录的存在都需要依靠 File 类来完成。 File 不涉及文件的处理和文件内容的读写操作。 输入输出流 输入输出流用于将数据从一个源读取到程序中,或者将数据从程序写入到一个目标(如文件、网络、内存)等。 Java 有多种 ......
【C#】【System.IO】关于拷贝文件夹以及(Directory和DirectoryInfo、File和FileInfo)的区别
本次问题是想要拷贝文件夹,但是找了一圈发现只有File有Copy或者FileInfo的CopyTo,并没有Directory的拷贝操作方法。 针对C#中拷贝文件夹的方法就是先生成一个目标文件夹(destinationFolder)再将(soursefolder)中的文件依次拷贝到目标文件夹中,C#并 ......
ssh WARNING: UNPROTECTED PRIVATE KEY FILE!
前言 在 ssh -i 指定密钥文件 登录时,出现以下报错: Permissions 0644 for 'xxxx' are too open. It is required that your private key files are NOT accessible by others. This ......
npm: No such file or directory
在项目中运行npm run build报错 bash: /c/Program Files/nodejs/node_global/npm: No such file or directory 因为升级了npm和node,环境变量地址也需要重新配置下 npm不是在/node_global文件里,是在no ......
jenkins+sonarQube实现代码扫描
sonarQube安装 SonarQube基于Java开发,所以需要安装 OpenJDK8 版本。 SonarQube需要依赖 MySQL 数据库,至少 5.6 版本以上。 SonarQube的小型实例至少需要4GB 内存,如果是大型实例需要 16GB 7.8之后JDK本版需要JDK11本版 且不支 ......
[893] Add comments at a batch file (CMD)
ref: How do I do comments at a Windows command prompt? REM is the standard way: REM this is a comment You could also use the double-colon convention c ......
自动化之Jenkines配置
第一步:新建任务-输入一个任务名称-点击构建一个自由风格的软件项目 第二步: clone git的地址粘贴到这里,分支选择项目存放的分支,mster还是develop */develop 第三步:配置定时构建 第四部:配置执行命令 ......
fatal: sha1 file '<stdout>' write error: Broken pipe
解决 使用Git LFS 在官网 https://git-lfs.github.com/ 下载git-lfs-windows-v2.8.0.exe并安装。 新开一个bash命令行输入git lfs install安装 跟踪你要push的大文件git lfs track "*.h5",这时会生成一个. ......
jenkins安装插件报错
1、安装插件publish-over-ssh报错 解决方案: 下载publish-over.hpi文件 https://updates.jenkins.io/download/plugins/publish-over/0.22/publish-over.hpi 离线安装选择的插件: 然后再安装pub ......
Linux file system All In One
Linux file system All In One
图解 Linux 文件系统
......
gitlab和jenkins配合
目录项目配置使用 docker 启动 gitlab修改拉取git代码的git和http的url配置gitlab从新搞一个jenkins(配置插件)jenkins配置harbor配置安装配置docker登录harbor持久化jenkins的ssh命令docker 登录失败解决方法 项目配置 IP 配置 ......
Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory) 报错消息解决方法
本人使用 centos:7.6.1810 及 Miniconda3-py311_23.5.2-0-Linux-x86_64 默认状态下应该没有这个问题。 当在使用conda下载包时,如果不小心更新了涉及conda-libmamba-solver 和 libarchive的包,就可能会导致这个报错消息 ......
jenkins结合Sonarqube实现代码扫描。
#1.centos8系统环境准备: ip 主机名 软件 10.0.0.170 sonarqube sonarqube 8.9.9LTS postgresql-10.17 10.0.0.160 jenkins-master jenkins-2.346.3 sonar-scanner-4.7 #sona ......
k8s部署jenkins+gitlab实现代码发布
1.#k8s部署jenkins #k8s中运行jenkins服务,gitlab还是跑在物理机上,因为经常需要clone修改代码。 #基于java命令,运⾏java war包或jar包,本次以jenkins.war 包部署⽅式为例,jenkins的数据保存⾄外部存储(NFS或者PVC)。 1.1#镜像 ......
Centos安装网卡驱动make时报错Kernel header files not in any of the expected locations.解决办法之一
Centos安装I219-LM网卡驱动 https://www.cnblogs.com/marixh/p/16927623.html 查询适合我的网卡命令: 1 2 [root@192 src]# lspci|grep net 00:1f.6 Ethernet controller: Intel C ......
Jenkins基础流程手记
流程图 准备环境 一台宿主机 用来模拟CICD(jenkins、gitlab环境) 一台虚拟机(云服务器) 用来模拟生产环境 搭建CICD gitlab搭建 下载gitlab镜像 docker search gitlab-ce docker pull gitlab-ce 启动gitlab镜像 doc ......
Express.js read and write image file All In One
Express.js read and write image file All In One Node.js res.sendFile res.sendFile(path [, options] [, fn]) res.sendFile() is supported by Express v4.8 ......
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/example/JobMain has been compiled by a more recent version of the Java Runtime (class file version 61.0), 问题的解决(未解决)
问题描述 使用hadoop在虚拟机里面运行打包的程序出错: 问题解决 真的服了,貌似是jdk的版本啥的问题,搜了好多,就是解决不了,求助求助啊! ......
[极客大挑战 2019]Secret File
查看源代码发现一个php文件,进行访问点击了一下,啥也没有退回去重新查看发现有个文件,访问发现是刚才那个页面,burp进行抓包看看发现了个隐藏文件访问 secr3t.php通过代码审计,包含一个file的文件,用get方式传输,如果存在../,tp,input,data等字符就会输出Oh no构造p ......