This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/Jenkinsfile
2022-01-23 00:42:48 +01:00

33 lines
No EOL
679 B
Groovy

node {
def app
stage('Clone repository') {
// Let's make sure we have the repository cloned to our workspace
checkout scm
}
stage('Install dependencies') {
// Install dependencies for build later
composer update --no-dev
yarn install
}
stage('Vulnr test') {
snykSecurity(
snykInstallation: 'snyk',
targetFile: 'composer.json',
)
}
stage('Deploy staging') {
// Deploy to staging host
sh 'vendor/bin/dep deploy staging'
}
/*
stage('Test staging') {
// Run phpunit tests on staging host
bin/phpunit COMMAND
}
/*
}