diff --git a/JenkinsFile b/JenkinsFile index 658c3a9..73814f6 100644 --- a/JenkinsFile +++ b/JenkinsFile @@ -14,12 +14,10 @@ pipeline { } } stage('push') { - steps { - withCredentials([usernamePassword(credentialsId: 'DockerHub-LG', passwordVariable: 'PSWD', usernameVariable: 'LOGIN')]) { + steps { script { - sh 'echo ${PSWD} | docker login -u ${LOGIN} --password-stdin' - sh 'docker push ${DOCKER_REPO}:${IMG_NAME}' - } + sh 'echo 'Makaron118912' | docker login -u 'maciejm.01@interia.pl' --password-stdin' + sh 'docker push ${DOCKER_REPO}:${IMG_NAME}' } } }