`
wynet321
  • 浏览: 26458 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
当使用jmeter的script的时候,如果script中有循环并且循环次数成千上万次,建议使用JSR。而当script中没有循环或者循环次数地狱1000的情况下,尽量采用Beanshell sampler。一般情况下应尽量采用Beanshell
1. common.js 公用方法 export default { install (Vue, options) { Vue.prototype.fetchI18nText = function (locale) { this.$http.get('http://localhost:8081/static/i18n/' + locale + '.json').then((response) => { Vue.prototype.$i18nText = response.data }) } } } 2. main. ...
Jenkins slave上不能执行File相关的操作,所有操作将在master上执行。 可以通过bash shell解决。比如,希望检测某个folder是否存在以及是否有文件在其中。   def folder="/test" def isFolderEmpty=sh(returnStdout: true, script: ''' if [ -d '''+folder+''' ]; then [ "$(ls -A '''+folder+''')" ] && echo "true" | ...
aaa job调用bbb job,bbb job设置成unstable retry(2){ try{ def result=build job: "bbb" echo result }catch(err){ if(!err.getMessage().contains("UNSTABLE")) throw err } }  
只要适时重新拨号获得新的公网IP,速度就恢复高速了。 估计百度会记录IP,定时对IP降速。
在做Jenkins pipeline groovy脚本时,遇到如下脚本     def branches=[:] for(int i=0;i<10;++i){ branches[i]={ println i } } prarallel branches     结果发现打印出来所有branch里的i都是10。代表循环变量不是运行时传入branches块。做如下修改   def branches=[:] for(int i=0;i<10;++i){ def value=i def branch={ ...
在shell中执行docker shell命令返回结果给变量 function test(){ result=(`bash -c "$1"`) echo ${result[0]} } test "docker exec mysql /bin/bash -c 'mysql -u root -ppassw0rd -V'"    
Jenkins pipeline groovy不能使用eachFileRecurse方法,所以只能使用shell帮忙了。/path和*.txt为可替换参数。   files=sh(returnStdout: true, script: 'find /path -name "*.txt"')       
当使用load(path)方法调用外部groovy script的时候,路径使用单引号是调用当前WORKSPACE下的相对路径,路径使用双引号是直接使用绝对路径。例如: file=load '/folder1/script1' 实际上是加载${WORKSPACE}/folder1/script1 file=load "/folder1/script1" 实际上加载/folder1/script1  
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun  需要安装xcode: xcode-select --install  因为git依赖xcode command tool  
利用Axis2生成Stub后,使用中发现Date类型在转换为xml String的时候都带有时区(Timezone)信息。而自己的系统并不认这种日期格式。例如: Axis2生成的日期字符串形如 yyyy-MM-dd+hh:mm 自己的系统只认yyyy-MM-dd   所以,如何去掉后面的TimeZone信息呢? 1. 创建转换类继承org.apache.axis2.databinding.utils.ConverterUtil 2. 重载publicstaticStringconvertToString(Datevalue)方法 原方法  public static Stri ...
在eclipse的preferences里,Java-Code style-Code templates,Comments-Type编辑成如下     @author ${name:git_config(user.name)} (${mail:git_config(user.email)})
In finder goto to applications and choose SoapUI icon.  Choose "Show Package Content" optionIn the directory /applications/SoapUI/Contents/PlugIns delete the "jre.bundle"
sudo apt-get install libgnome-keyring-dev cd /usr/share/doc/git/contrib/credential/gnome-keyring sudo make git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
Debian下,/etc/mysql/my.cnf里面加上 lower_case_table_names=1
Global site tag (gtag.js) - Google Analytics