pflaenz.li-Symfony/Jenkinsfile

40 lines
882 B
Plaintext
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-24 10:31:21 +01:00
stage('Composer Vulnr test') {
2022-01-23 00:37:00 +01:00
snykSecurity(
2022-01-23 12:08:23 +01:00
snykInstallation: 'snyk-local',
2022-01-24 10:31:21 +01:00
targetFile: 'composer.lock',
)
}
stage('npm vulnr test') {
snykSecurity(
snykInstallation: 'snyk-local',
targetFile: 'package.json',
2022-01-23 00:37:00 +01:00
)
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
2023-02-08 17:23:24 +01:00
sh 'vendor/bin/dep deploy lq5xi.ftp.infomaniak.com --no-interaction'
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
}