Creates Docker Swarm configs on a Portainer Swarm environment from files in a Git folder.
Docker Swarm only. Each config is named {filename}-{hash} from the file bytes. If that name already exists, the step skips it.
Shallow-clones on a Jenkins agent (git on PATH); this step requires a workspace / node.
Run this step before Portainer Stack Deployment. The step sets build environment variables from file names
(uppercase, - → _, no extension): rabbitmq-config.json → RABBITMQ_CONFIG
(value = Docker config name on Swarm). In the Stack step env field use RABBITMQ_CONFIG=${RABBITMQ_CONFIG}.
In compose: name: ${RABBITMQ_CONFIG} with external: true.