From 161505d64817398addbe750ea309967e1d3de6df Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 14 Nov 2024 23:23:58 +0000 Subject: [PATCH] Add Jenkinsfile --- Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..32d40e1 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,21 @@ +pipeline { + agent any + stages { + stage('Testing') { + steps { + sh '''npm i -g yarn +''' + sh 'yarn' + sh 'yarn test' + } + } + + stage('Linting') { + steps { + sh 'yarn' + sh 'yarn lint-test' + } + } + + } +} \ No newline at end of file