Use sudo for apt-get commands in Jenkinsfile

This commit is contained in:
2026-01-13 22:05:09 +00:00
committed by GitHub
parent b9258d7420
commit 04df1bca51

4
Jenkinsfile vendored
View File

@@ -22,8 +22,8 @@ pipeline {
stage('Download Node') {
steps {
sh '''
apt-get update
apt-get install -y xz-utils
sudo apt-get update
sudo apt-get install -y xz-utils
curl -fsSLO https://nodejs.org/dist/v${NODE_VERSION}/${NODE_DIST}.tar.xz
tar -xJf ${NODE_DIST}.tar.xz
node --version