From 59dbeec8be771bc92078089acfd3ae9891f27a49 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 28 Nov 2022 05:17:50 +0000 Subject: [PATCH] Switched Jenkinsfile to manual installations. --- Jenkinsfile | 25 +++++++++++++++---------- environment.yml | 17 ----------------- 2 files changed, 15 insertions(+), 27 deletions(-) delete mode 100644 environment.yml diff --git a/Jenkinsfile b/Jenkinsfile index e29b750..163006c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,24 @@ pipeline { agent any + environment { + PATH = "/home/jenkins/.local/share/fnm:${PATH}" + } stages { stage("install") { steps { - sh '''#!/usr/bin/env pwsh - conda env create -q -f environment.yml - conda activate webdev + sh ''' + curl -fsSL https://fnm.vercel.app/install | bash + eval "`fnm env`" + fnm install + fnm use npm install ''' } } - stage("tests") { + stage("test") { steps { - sh '''#!/usr/bin/env pwsh - conda activate webdev + sh ''' + eval "`fnm env`" npm run test:junit ''' junit 'junit/*.xml' @@ -21,8 +26,8 @@ pipeline { } stage("build") { steps { - sh '''#!/usr/bin/env pwsh - conda activate webdev + sh ''' + eval "`fnm env`" npm run build:prod ''' fingerprint "dist/**" @@ -31,8 +36,8 @@ pipeline { } stage("generate docs") { steps { - sh '''#!/usr/bin/env pwsh - conda activate webdev + sh ''' + eval "`fnm env`" npm run docs ''' publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: '']) diff --git a/environment.yml b/environment.yml deleted file mode 100644 index 7690406..0000000 --- a/environment.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: webdev -channels: - - conda-forge -dependencies: - - _libgcc_mutex=0.1=conda_forge - - _openmp_mutex=4.5=2_gnu - - ca-certificates=2022.9.24=ha878542_0 - - icu=70.1=h27087fc_0 - - libgcc-ng=12.2.0=h65d4601_19 - - libgomp=12.2.0=h65d4601_19 - - libstdcxx-ng=12.2.0=h46fd767_19 - - libuv=1.44.2=h166bdaf_0 - - libzlib=1.2.13=h166bdaf_4 - - nodejs=18.12.1=h8839609_0 - - openssl=3.0.7=h166bdaf_0 - - zlib=1.2.13=h166bdaf_4 -prefix: /home/conda/envs/webdev