Files
ZenProject/Jenkinsfile
T
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'
}
}
}
}