• jenkins复制视图

    发布于:2022-12-20 作者:Garany 评论(0) 引用(0) 浏览(331)   分类:破万卷书  

    import hudson.model.* //源view def str_view = "测试" //目标view def str_new_view = "线上" //源job名称(模糊匹配) def str_search = "abc-" //目标job名称(模糊匹配后替换) def str_replace = "xyz-" def view = Hudson.instance.getView(str_view) //copy all projects of a view for(item in view.getItems()) { //跳过未模糊匹配到的构建任务 if (!item.getName().contains(str_search)) { // 说明文字,表示跳过未匹配到的job,...

    阅读全文>>

    标签: linux Jenkins
  • docker部署elasticsearch

    发布于:2022-11-02 作者:Garany 评论(0) 引用(0) 浏览(1505)    

    #创建数据和插件目录 # mkdir -p /data/elastic/{data/,plugins/} # chmod 777 -R /data/elastic/data/ #添加配置文件 # vim /data/elastic/elasticsearch.yml cluster.name: -ES node.name: node-1 path.data: /esdata network.host: 0.0.0.0 cluster.initial_master_nodes: ["node-1"] http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-headers: Authorization xpack.security.enabled: true xpack.security.transport.ssl.enabled: true indices.breaker.type: none http.max_...

    阅读全文>>

  • docker daemon.json

    发布于:2022-09-11 作者:Garany 评论(0) 引用(0) 浏览(338)   分类:破万卷书  

    # vim /etc/docker/daemon.json { "registry-mirrors": ["https://6jaa772l.mirror.aliyuncs.com"], "insecure-registries": ["192.168.10.20:8888"], "hosts" : ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"], "graph": "/data/docker", "log-driver":"json-file", "log-opts":{ "max-size" :"100m","max-file":"1"} } //registry-mirrors,镜像加速地址 //insecure-registries,私有仓库地址 //hosts,开启远程控制,同时要去掉docker.service中--H fd:// --containerd=/ru...

    阅读全文>>

    标签: linux docker