This commit is contained in:
Ionel Andrei Cataon
2026-02-12 14:08:00 +02:00
parent 611c31c0a1
commit ddb9425e44
4 changed files with 63 additions and 0 deletions

30
project1/jenkinsfile Normal file
View File

@@ -0,0 +1,30 @@
pipeline {
agent any
stages {
stage('Checkout') {
steps {
// Jenkins va prelua codul sursă din depozitul Git
echo 'Se descarca codul...'
}
}
stage('Build Docker Image') {
steps {
script {
// Construim imaginea și îi dăm un nume (tag)
sh 'docker build -t web-checker-app .'
}
}
}
stage('Run Checker') {
steps {
script {
// Rulăm containerul
sh 'docker run --rm web-checker-app'
}
}
}
}
}