cicd-test/Jenkinsfile

32 lines
666 B
Groovy

pipeline {
agent any
stages {
stage("Checkout") {
steps {
echo "Checking out code from Gitea..."
checkout scm
}
}
stage("Build") {
steps {
echo "Building..."
sh "echo Hello from CI/CD Pipeline!"
}
}
stage("Test") {
steps {
echo "Testing..."
sh "echo All tests passed!"
}
}
}
post {
success {
echo "Pipeline completed successfully!"
}
failure {
echo "Pipeline failed!"
}
}
}