导航

 
上一页 1 2 3 4 5 6 ··· 28 下一页

2020年9月9日

摘要: form-data类型 def multipart_producer(boundary, filename): """构建 multipart, 返回 yield, 实现分片上传""" import time,chardet,os,mimetypes def _encode(_str): if no 阅读全文
posted @ 2020-09-09 15:46 slqt 阅读(415) 评论(0) 推荐(0) 编辑
 

2020年9月8日

摘要: jenkins需要迁移平台时,可以用以下脚本,该脚本内部还带了环境配置更改的代码 #!/usr/bin/env python #coding=utf8 import os import sys import getpass from subprocess import Popen, PIPE imp 阅读全文
posted @ 2020-09-08 10:29 slqt 阅读(255) 评论(0) 推荐(0) 编辑
 

2020年9月4日

摘要: pipeline脚本,写的groovy import java.text.SimpleDateFormat def dateFormat = new SimpleDateFormat("yyyyMMddHHmm") def date = new Date() dayTime=dateFormat.f 阅读全文
posted @ 2020-09-04 15:36 slqt 阅读(748) 评论(0) 推荐(0) 编辑
 

2020年9月2日

摘要: rm -rf * git reset --hard && git clean -fdx #git init git config --global http.sslVerify false #对IFS变量 进行替换处理 OLD_IFS="$IFS" IFS="@" array=($gitUrl) I 阅读全文
posted @ 2020-09-02 16:01 slqt 阅读(754) 评论(0) 推荐(0) 编辑
 

2020年9月1日

摘要: "git:'credential-store' 不是一个 git 命令"报错解决方法 原因是之前通过修改.git-credentials文件或通过git config -set的方式写入了配置变量,比如git登录的账号信息。 用unset命令就可以解除 git config --unset-all 阅读全文
posted @ 2020-09-01 14:20 slqt 阅读(168) 评论(0) 推荐(0) 编辑
 

2020年8月19日

摘要: #!/usr/bin/env python #coding=utf8 import os import sys import getpass from subprocess import Popen, PIPE import requests import re import xml.etree.E 阅读全文
posted @ 2020-08-19 14:22 slqt 阅读(696) 评论(0) 推荐(0) 编辑
 

2020年7月24日

摘要: #coding=utf8 import requests import json import os from requests.auth import HTTPBasicAuth import ssl ssl._create_default_https_context = ssl._create_ 阅读全文
posted @ 2020-07-24 16:22 slqt 阅读(305) 评论(0) 推荐(0) 编辑
 

2020年7月22日

摘要: #coding=utf8 import os import sys job_name=os.environ["JOB_NAME"] dir_path=os.path.join('/home/jenkins/workspace/',job_name) dir_lists=[] target_dir_l 阅读全文
posted @ 2020-07-22 10:52 slqt 阅读(226) 评论(0) 推荐(0) 编辑
 

2020年7月13日

摘要: #!/usr/bin/env python #coding=utf8 import sys import re import os import subprocess import shutil base_path = '/tmp/test' if not os.path.exists(base_p 阅读全文
posted @ 2020-07-13 16:00 slqt 阅读(2425) 评论(0) 推荐(0) 编辑
 

2020年7月10日

摘要: for field_name in issue_info.raw['fields']: print ("Field:", field_name, "Value:", issue_info.raw['fields'][field_name]) 阅读全文
posted @ 2020-07-10 10:21 slqt 阅读(442) 评论(0) 推荐(0) 编辑
 
上一页 1 2 3 4 5 6 ··· 28 下一页