From 4ea0c093fa8956ce2002dcdc467fbfab3c91fff9 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sat, 5 Oct 2024 06:52:02 -0500 Subject: [PATCH] update jenkinsfile --- Jenkinsfile | 30 ++++++++++++++++++++++++++++++ Jenkinsfile.groovy | 24 ------------------------ 2 files changed, 30 insertions(+), 24 deletions(-) create mode 100644 Jenkinsfile delete mode 100644 Jenkinsfile.groovy diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..89911f5 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent { + docker { + image 'node:22' + } + } + stages { + stage('Install pnpm') { + steps { + sh 'npm i -g pnpm' + } + } + stage('Install dependencies') { + steps { + sh 'pnpm i' + } + } + stage('Buid') { + steps { + sh 'pnpm build' + } + } + stage('Deploy') { + steps { + sh 'mv dist/* /var/www/thp-lang.org/' + } + } + } +} + diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy deleted file mode 100644 index a4ff150..0000000 --- a/Jenkinsfile.groovy +++ /dev/null @@ -1,24 +0,0 @@ -pipeline { - agent { - docker { - image 'node:22' - } - } - stages { - stage('Install pnpm') { - steps { - sh 'npm i -g pnpm' - } - } - stage('Install dependencies') { - steps { - sh 'pnpm i' - } - } - stage('Buid') { - steps { - sh 'pnpm build' - } - } - } -}