pflaenz.li-Symfony/Jenkinsfile

34 lines
726 B
Text
Raw Normal View History

2021-05-05 11:24:41 +02:00
node {
def app
stage('Clone repository') {
2022-01-23 00:37:00 +01:00
// Let's make sure we have the repository cloned to our workspace
2021-05-05 11:24:41 +02:00
checkout scm
}
2022-01-23 00:37:00 +01:00
stage('Install dependencies') {
// Install dependencies for build later
2022-01-23 12:06:24 +01:00
sh 'composer update'
2022-01-23 10:56:28 +01:00
sh 'yarn install'
2021-05-05 11:24:41 +02:00
}
2022-01-23 00:37:00 +01:00
stage('Vulnr test') {
snykSecurity(
2022-01-23 12:08:23 +01:00
snykInstallation: 'snyk-local',
2022-01-24 10:13:01 +01:00
snykTokenId: ${SNYK_TOKEN},
2022-01-23 00:37:00 +01:00
targetFile: 'composer.json',
)
2021-05-05 11:24:41 +02:00
}
2021-05-06 14:59:29 +02:00
2022-01-23 00:37:00 +01:00
stage('Deploy staging') {
// Deploy to staging host
2022-01-23 00:42:48 +01:00
sh 'vendor/bin/dep deploy staging'
2021-12-25 14:33:17 +01:00
}
2022-01-23 00:37:00 +01:00
/*
stage('Test staging') {
// Run phpunit tests on staging host
bin/phpunit COMMAND
2021-05-06 14:59:29 +02:00
}
2022-01-23 10:54:52 +01:00
*/
2021-05-05 11:24:41 +02:00
}