|
@@ -52,14 +52,14 @@ pipeline {
|
|
|
steps {
|
|
|
echo "Building ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}."
|
|
|
sh "docker build --no-cache -t ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER} ."
|
|
|
- echo "Running ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest."
|
|
|
+/* echo "Running ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest."
|
|
|
withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
sh '''set +x
|
|
|
docker run -i --rm -e TZ=Europe/Moscow -e "mode=keygen" -e "SSHKEY=$(cat ${GIT_SSH_KEY})" \
|
|
|
-e git_url_pki=ssh://git@git.sdsys.ru:8022/iru/openvpn-pki.git \
|
|
|
-e git_url_ovpn=ssh://git@git.sdsys.ru:8022/iru/openvpn.git \
|
|
|
${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER} sleep 1d
|
|
|
- '''
|
|
|
+*/ '''
|
|
|
}
|
|
|
}
|
|
|
}
|