From 73b5b17752fcd2b5fb8346310674677ae5c07645 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 20 Oct 2021 03:49:36 +0200 Subject: [PATCH 1/2] added Jenkinsfile --- Jenkinsfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..d9457ec --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +pipeline { + agent any + + stages { + stage('Prepare') { + steps { + sh 'echo "VUE_APP_API_URL=https://api.csgow.tf" > .env.production' + } + } + stage('Install Dependencies') { + steps { + sh 'yarn install' + } + } + stage('Build') { + steps { + sh 'yarn build' + archiveArtifacts artifacts: '**/dist/**', excludes: '**/node_modules/**' + } + } + } +} From 628598d091d30d5a496bcdefd287da0d7f1c2e31 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 20 Oct 2021 03:57:49 +0200 Subject: [PATCH 2/2] switched to writeFile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d9457ec..1300270 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stages { stage('Prepare') { steps { - sh 'echo "VUE_APP_API_URL=https://api.csgow.tf" > .env.production' + writeFile file: '.env.prodution', text: 'VUE_APP_API_URL=https://api.csgow.tf' } } stage('Install Dependencies') {