Files
test/Jenkinsfile
Jan Rabcan 9cc7208c48
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit
.
2021-10-19 23:45:14 +02:00

40 lines
973 B
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 {
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}"
}
}
}
}