• jenkins复制视图

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

    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) 浏览(1689)    

    #创建数据和插件目录 # 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_...

    阅读全文>>