Files
test/Jenkinsfile
Jan Rabcan d937561e1b
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit
test
2021-10-19 23:57:56 +02:00

43 lines
1.1 KiB
Groovy

pipeline {
agent {
label 'docker'
}
stages {
stage('Init') {
agent {
docker {
// Set both label and image
label 'docker'
image 'node:17-alpine'
args '--name docker-node' // list any args
}
}
steps {
def dockerHome = tool 'docker'
env.PATH = "${dockerHome}/bin:${env.PATH}"
sh 'node --version'
}
}
stage('Build') {
steps {
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
echo 'Building..'
sh 'docker info'
}
}
stage('Test') {
steps {
echo "start Testing"
sh 'sleep 5'
echo "finish Testing"
}
}
stage('Deploy') {
steps {
echo "Deploying.... ${env.ENV_REGISTRY_URL} - ${env.ENV_REGISTRY_USER}"
}
}
}
}