From 1509b0a5af444a7b7917867328a962bafbeb7ca7 Mon Sep 17 00:00:00 2001 From: shaowenchen Date: Thu, 25 Feb 2021 13:16:13 +0800 Subject: [PATCH] feature: use podman to build --- Jenkinsfile-online | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile-online b/Jenkinsfile-online index 2ca69e7f..653edb35 100644 --- a/Jenkinsfile-online +++ b/Jenkinsfile-online @@ -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' } @@ -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') {