Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Jenkinsfile-online
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pipeline {
GITHUB_CREDENTIAL_ID = 'github-id'
KUBECONFIG_CREDENTIAL_ID = 'demo-kubeconfig'
REGISTRY = 'docker.io'
DOCKERHUB_NAMESPACE = 'docker_username'
DOCKERHUB_NAMESPACE = 'shaowenchen'
GITHUB_ACCOUNT = 'kubesphere'
APP_NAME = 'devops-java-sample'
}
Expand All @@ -26,6 +26,19 @@ pipeline {
}
}

stage ('install podman') {
steps {
container ('maven') {
sh '''
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
yum -y install podman
mv /usr/bin/docker /usr/bin/docker_ce
ln -s /usr/bin/podman /usr/bin/docker
'''
}
}
}

stage ('unit test') {
steps {
container ('maven') {
Expand Down