watcher-ts/Jenkinsfile2
Lance Seidman fa5958f40f
Update Jenkinsfile2
Removed unknown sudo
2023-02-07 10:47:11 -08:00

23 lines
680 B
Plaintext

pipeline {
agent {
docker {
image 'node:16.13.1-alpine'
args '-u root:root'
}
}
stages {
stage('Build Project') {
steps {
sh 'node --version'
sh 'apk add git yarn npm'
sh 'git config --global --add safe.directory /var/lib/jenkins/workspace/watcher-ts-testing'
sh 'npm config set registry https://git.vdb.to/api/packages/cerc-io/npm'
sh 'yarn'
sh 'yarn build'
sh 'npm install --g lerna'
sh 'lerna publish from-package --no-git-tag-version --yes'
}
}
}
}