Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Nov 17, 2024
1 parent 0f8fa21 commit b7b2946
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions jenkins/src/org/ops/util/PathUtils.groovy
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/usr/bin/env groovy
package org.ops.util

import com.cloudbees.groovy.cps.NonCPS

import java.nio.file.Path

@NonCPS
static def ofPath(String first, String... more) {
return Path.of(first as String, more.findAll { StringUtils.isNotEmpty(it) } as String[]).toString()
}

@NonCPS
static def relativize(String p1, String p2) {
return Path.of(p1 as String).relativize(Path.of(p2 as String)).toString()
}
Expand Down
1 change: 0 additions & 1 deletion server/docker/ops/jenkins/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ services:
environment:
JENKINS_UC: https://mirrors.aliyun.com/jenkins/updates/update-center.json
JENKINS_UC_EXPERIMENTAL: https://mirrors.aliyun.com/jenkins/updates/experimental/update-center.json
JAVA_OPTS: "-Xverify:none"
DOCKER_HOST: tcp://docker:2376
DOCKER_CERT_PATH: /docker-certs/client
DOCKER_TLS_VERIFY: 1
Expand Down

0 comments on commit b7b2946

Please sign in to comment.