Create Jenkinsfile2

This commit is contained in:
Lance Seidman 2023-01-26 10:42:51 -08:00 committed by GitHub
parent e5da4da395
commit 6bd8542991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
Jenkinsfile2 Normal file
View File

@ -0,0 +1,23 @@
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 'yarn'
sh 'yarn build'
sh 'npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/'
sh 'lerna publish from-package --no-git-tag-version --yes'
}
}
}
}