Skip to content

Conversation

gentry205
Copy link

The docker-workflow plugin also works perfectly with podman. After switching podman to cgroup v2, it is no longer recognised when Jenkins is running in a podman container. In order for this to work again, the regular expression needs to be adjusted. After the adjustment, the containerid is recognised correctly for both docker and podman. The expression used utilises lookbehind and lookahead expressions to determine the containerid.

Tests are implemented in ContainerisedCGroupV2Test and run without errors.

…r when podman is used with cgroup v2

The docker-workflow plugin also works perfectly with podman. After switching podman to cgroup v2, it is no longer recognised when Jenkins is running in a podman container. In order for this to work again, the regular expression needs to be adjusted. After the adjustment, the containerid is recognised correctly for both docker and podman. The expression used utilises lookbehind and lookahead expressions to determine the containerid.
@Lanboost
Copy link

Yep, Im running into same issue. Without testing this fix seems to have a correct regex for podman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants