Changing back to Node Version Manager.
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit

This commit is contained in:
2024-07-18 04:55:47 +00:00
parent ced027da17
commit e6e31e0cfe
6 changed files with 37 additions and 4 deletions

8
Jenkinsfile vendored
View File

@@ -12,12 +12,12 @@ pipeline {
echo 'export DOTNET_ROOT=$HOME/.dotnet' >> ~/.bashrc
echo 'export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools' >> ~/.bashrc
# Installing Node Version Manager
# According to https://github.com/Schniz/fnm
curl -fsSL https://fnm.vercel.app/install | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
'''
sh '''#!/bin/bash
fnm install 20.15.1
fnm use default
nvm install 20.15.1
nvm use default
# Restore all projects
dotnet restore Props/Props.csproj
dotnet restore Props.Tests/Props.Tests.csproj