Refacere repo
This commit is contained in:
30
project1/jenkinsfile
Normal file
30
project1/jenkinsfile
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user