ZenProject/Jenkinsfile
Sami f0dfc063e1
Some checks failed
Zakaria/ZenProject/pipeline/head There was a failure building this commit
Zenful/ZenProject/pipeline/head There was a failure building this commit
fix: 3 - Updating Jenkinsfile
2024-09-28 17:29:33 -04:00

24 lines
778 B
Groovy

pipeline {
agent any
stages {
stage('Install Chrome and ChromeDriver') {
steps {
// Install Chrome and ChromeDriver if necessary (Linux environment)
sh 'sudo apt-get update'
sh 'sudo apt-get install -y google-chrome-stable'
sh 'wget https://chromedriver.storage.googleapis.com/$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip'
sh 'unzip chromedriver_linux64.zip'
sh 'sudo mv chromedriver /usr/local/bin/'
}
}
stage('Run Tests') {
steps {
// Run the tests in a headless Chrome environment
sh 'mvn test'
}
}
}
}