Skip to content

Commit a94f269

Browse files
authored
feature: use podman to build (kubesphere#67)
1 parent e5a092a commit a94f269

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Jenkinsfile-online

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
 (0)