Changing back to Node Version Manager.
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user