File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pipeline {
1414 GITHUB_CREDENTIAL_ID = 'github-id'
1515 KUBECONFIG_CREDENTIAL_ID = 'demo-kubeconfig'
1616 REGISTRY = 'docker.io'
17- DOCKERHUB_NAMESPACE = 'docker_username '
17+ DOCKERHUB_NAMESPACE = 'shaowenchen '
1818 GITHUB_ACCOUNT = 'kubesphere'
1919 APP_NAME = 'devops-java-sample'
2020 }
@@ -26,6 +26,19 @@ pipeline {
2626 }
2727 }
2828
29+ stage ('install podman') {
30+ steps {
31+ container ('maven') {
32+ sh '''
33+ curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_7/devel:kubic:libcontainers:stable.repo
34+ yum -y install podman
35+ mv /usr/bin/docker /usr/bin/docker_ce
36+ ln -s /usr/bin/podman /usr/bin/docker
37+ '''
38+ }
39+ }
40+ }
41+
2942 stage ('unit test') {
3043 steps {
3144 container ('maven') {
You can’t perform that action at this time.
0 commit comments