Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Jan 11, 2024
1 parent 1b97f21 commit 9bc61e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM node:18.17.1-bookworm
FROM mcr.microsoft.com/playwright:v1.40.1-jammy

RUN apt-get update &&\
apt-get install software-properties-common -y &&\
apt-add-repository universe -y &&\
apt-get update &&\
apt-get install openjdk-17-jdk maven -y

USER node
12 changes: 12 additions & 0 deletions build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ pipeline {
}
}
}
stage('NPM:test') {
steps {
script {
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
docker.build('node', '-f build/Dockerfile .').inside {
sh 'npm run test'
}
}
archiveArtifacts artifacts: 'playwright-report/**', allowEmptyArchive: false
}
}
}
stage('Deploy') {
when {
expression { isReleaseOrMasterBranch() && currentBuild.changeSets.size() > 0 }
Expand Down

0 comments on commit 9bc61e9

Please sign in to comment.