add test phase to jenkinsfile
Gitea/subman-nextjs/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
andrzej 2024-10-04 21:36:58 +02:00
parent f9eb6254e3
commit 84caa342f0
1 changed files with 5 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -14,6 +14,11 @@ agent any
sh 'rm -r pack' sh 'rm -r pack'
} }
} }
stage('test'){
steps{
sh 'npx playwright test'
}
}
stage('deploy'){ stage('deploy'){
steps{ steps{
sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'ssh-uploads/subman/upgrade.sh', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/subman/', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'subman.tar.gz')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'ssh-uploads/subman/upgrade.sh', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/subman/', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'subman.tar.gz')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])