Skip to content

Commit 5679d39

Browse files
committed
update jenkinsfile
1 parent 7c67f56 commit 5679d39

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

Jenkinsfile

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,26 @@ node('high-cpu') {
9090
returnStdout: true
9191
).trim()
9292

93+
docker.image(imageNames[0])
94+
.inside("--network=host -e KUBECONFIG=${env.WORKSPACE}/.kube/config") {
95+
sh """
96+
java -classpath /app/gitops-playground.jar \
97+
org.codehaus.groovy.tools.GroovyStarter \
98+
--main groovy.ui.GroovyMain \
99+
--classpath /app/src/main/groovy \
100+
/app/src/main/groovy/com/cloudogu/gitops/cli/GitopsPlaygroundCliMainScripted.groovy \
101+
--yes \
102+
--trace \
103+
--monitoring \
104+
--vault=dev \
105+
--ingress-nginx \
106+
--mailhog \
107+
--base-url=http://localhost \
108+
--cert-manager
109+
"""
110+
}
93111

94112

95-
def app = docker.image(imageNames[0]).run(
96-
"-e KUBECONFIG=${env.WORKSPACE}/.kube/config --network=host",
97-
"--yes --trace --internal-registry-port=${registryPort} " +
98-
"--registry --jenkins --content-examples " +
99-
"--argocd --monitoring --vault=dev --ingress-nginx --mailhog --base-url=http://localhost --cert-manager"
100-
)
101-
102-
try {
103-
104-
sleep(time: 120, unit: 'SECONDS')
105-
echo "===== Container Logs ====="
106-
echo app.logs()
107-
108-
} finally {
109-
app.stop()
110-
}
111113
}
112114
}
113115
)

0 commit comments

Comments
 (0)