Small fix

This commit is contained in:
Reinier Criel 2025-12-30 10:11:25 -08:00
parent 7bfbe1376b
commit 8d0dcd0068

View file

@ -291,6 +291,8 @@ workflows:
## Jenkins Example ## Jenkins Example
Note: This assumes Node.js and npm are installed on the Jenkins agent.
```groovy ```groovy
pipeline { pipeline {
agent any agent any
@ -302,21 +304,6 @@ pipeline {
} }
stages { stages {
stage('Install Node.js') {
steps {
sh '''
set -euo pipefail
# install Node.js + npm (requires root, or passwordless sudo on the agent)
sudo -n apt-get update
sudo -n apt-get install -y nodejs npm
node -v
npm -v
'''
}
}
stage('Install safe-chain') { stage('Install safe-chain') {
steps { steps {
sh ''' sh '''