repo_base_url = "-u http://${NODE_IP_ADDRESS}:${repo_port}"
}
- remote.with {
- name = containerName
- host = IP_ADDRESS
- user = 'ubuntu'
- identityFile = SSH_KEY
- allowAnyHosts = true
- logLevel = 'INFO'
- pty = true
- }
+ remote = [
+ name: containerName,
+ host: IP_ADDRESS,
+ user: 'ubuntu',
+ identityFile: SSH_KEY,
+ allowAnyHosts: true,
+ logLevel: 'INFO',
+ pty: true
+ ]
// Force time sync to avoid clock drift and invalid certificates
sshCommand remote: remote, command: '''
stage('Publish to Dockerhub') {
parallelSteps = [:]
for (buildStep in containerList) {
- module = buildStep
- moduleName = buildStep.toLowerCase()
- dockerTag = params.DOCKER_TAG
- moduleTag = containerName
+ def module = buildStep
+ def moduleName = buildStep.toLowerCase()
+ def dockerTag = params.DOCKER_TAG
+ def moduleTag = containerName
parallelSteps[module] = {
dir("$module") {