logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Jenkins pipeline 获取指定路径下的文件列表

转自:获取Jenkinsfile(Groovy)中给定文件夹中的文件名列表node {// ... check out code, whateverfinal foundFiles = findFiles(glob: 'dockerfiles/**/*')// do things with FileWrapper[]}另一种选择是掏空并捕获标准:node {// ... check out cod

#jenkins#运维
Jenkins 插件开发记录

来到新公司不久,主管安排一个jenkins 插件开发的小需求给我,让我练练手,之前从未接触过相关内容,一切从0开始,做了一个月,基本完成需求上的功能,期间遇到不少困难,记录做以总结。现阶段网上相关的指导还是比较匮乏,我个人觉得比较好的方法是:参考已有插件的源码!需求大致是这样的:点击进入某次历史编译,将本次上传至Artifactory的文件copy 到Artifactory中的release...

OCI runtime create failed: starting container process caused "chdir to cwd (\"/root/WS\")...

执行dockerfile过程中报错:OCI runtime create failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/root/WS\") set in config.json failed: permission denied": unknownStep 10/1...

Jenkins 常用插件清单

pipeline语法:https://www.jenkins.io/zh/doc/book/pipeline/syntax/序号pipeline 命令或者config中的名称插件名称插件说明链接1findFiles()Pipeline Utility Stepshttps://jenkins.io/doc/pipeline/step

#jenkins#运维
【笔记】script.sh: source: not found in docker 问题

tmp/durable-d67c81b9/script.sh: source: not found in docker在jenkins中使用pipeline搭建工程,将脚本中docker run命令替换成 withDockerContainer格式源命令为:docker run -it --name xxx -v xxxxx imagename /bin/bash -c source bui...

error: Empty %files file /xxxx/rpmbuild/BUILD/xxxx/debugsourcefiles.list

工作中编译环境从centos7.4升级到centos8.1,编译出错。在rpm打包的时候报错内容如下:error: Empty %files file /jenkins/workspace/xxxx/output/rpmbuild/BUILD/xxxx/debugsourcefiles.list解决方法:rpmbuild 加上--nodebuginfo 参数。rpmbuild...

docker下载私有仓库镜像失败:Error response from daemon: Get $ip:5000/v2/: http: server gave HTTP response to HT

Ubuntu安装了dockerce,版本号为:# docker -vDocker version 18.09.3, build 774a1f4执行docker pull过程中报错:# docker pull xxx.xxx.xxx:5000/ubuntu/18.04/myimages:latestError response from daemon: Get https://...

Dockerfile中apt-get install 遇到交互式的处理方式

例如在Dockerfile中,有RUNapt-get install -y dracut,因为涉及交互式选择项(如下),docker build的时候会报错。root@c3210a8a85bf:/# apt-get install -y dracutReading package lists... DoneBuilding dependency tree..........The...

docker 中使用mount命令报错:mount: permission denied

工作中需要在docker容器中执行该命令:chroot /tmp/rootxxx.FCn/tmp_root_fs mount -t proc proc /proc执行会报错:mount: permission denied解决方法:在dockerrun启动容器时加上--privilegeddocker run -v /home/liurizhou/temp:/hom...

Jenkins k8s plugin pod反复重启,connect: no route to host

新安装了centos的虚拟机作为K8s 的node,添加完成后使用Jenkins指定该node启动pod,但是会反复重启报错如下:查看log:$ kubectl get pod -n xxx | grep yyy | awk '{print $1}' | xargs -I {} kubectl logs {} -c default-n xxxError from server: Get "xxxx

#jenkins#centos#linux
    共 16 条
  • 1
  • 2
  • 请选择