Files
test/Jenkinsfile
Jan Rabcan ae9806489c
All checks were successful
internetmastercz/test/pipeline/head This commit looks good
a.
2021-10-20 02:57:16 +02:00

25 lines
735 B
Groovy

node {
stage('Installation') {
echo "start Installation"
echo "finish Installation"
}
stage('Build') {
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
echo 'Building..'
// sh 'docker build -t registry.proxyq.co/hellsos/website .'
}
stage('Test') {
echo "start Testing"
sh 'sleep 5'
echo "finish Testing"
}
stage('Deploy') {
echo "${env.ENV_REGISTRY_URL}"
docker.withRegistry("https://registry.proxyq.co", 'registry-credentials-id') {
def customImage = docker.build("registry.proxyq.co/jenkins/website:${env.BUILD_ID}", '.')
customImage.push()
}
}
}