switch to yarn

This commit is contained in:
2020-02-05 20:16:25 +01:00
parent b92c6c4144
commit aa542372cc
5 changed files with 1585 additions and 1977 deletions
Vendored
+40 -40
View File
@@ -1,40 +1,40 @@
pipeline { pipeline {
agent any agent any
environment { environment {
VERSION = VersionNumber([ VERSION = VersionNumber([
versionNumberString: versionNumberString:
'${BUILDS_ALL_TIME}', '${BUILDS_ALL_TIME}',
versionPrefix: '1.0.', versionPrefix: '1.0.',
worstResultForIncrement: 'SUCCESS' worstResultForIncrement: 'SUCCESS'
]) ])
publish = 0 publish = 0
} }
stages { stages {
stage('Setup') { stage('Setup') {
steps { steps {
echo 'Setting up test environment' echo 'Setting up test environment'
sh 'npm ci' sh 'yarn --frozen-lockfile'
sh 'nodejs jenkins.js ${VERSION}' sh 'nodejs jenkins.js ${VERSION}'
script { script {
currentBuild.displayName = env.VERSION currentBuild.displayName = env.VERSION
} }
} }
} }
} }
post { post {
success { success {
script { script {
publish = sh script: "git log -1 | grep '\\[no publish\\]'", returnStatus: true publish = sh script: "git log -1 | grep '\\[no publish\\]'", returnStatus: true
if (publish != 0) { if (publish != 0) {
echo 'Deploying' echo 'Deploying'
sh 'npm publish' sh 'yarn publish'
} else { } else {
echo 'Build successful, Commit not marked for deploying' echo 'Build successful, Commit not marked for deploying'
currentBuild.result = "UNSTABLE" currentBuild.result = "UNSTABLE"
} }
} }
} }
} }
} }
-1858
View File
File diff suppressed because it is too large Load Diff
+39 -39
View File
@@ -1,39 +1,39 @@
pipeline { pipeline {
agent any agent any
environment { environment {
VERSION = VersionNumber([ VERSION = VersionNumber([
versionNumberString: versionNumberString:
'${BUILDS_ALL_TIME}', '${BUILDS_ALL_TIME}',
versionPrefix: '1.0.', versionPrefix: '1.0.',
worstResultForIncrement: 'SUCCESS' worstResultForIncrement: 'SUCCESS'
]) ])
publish = 0 publish = 0
} }
stages { stages {
stage('Setup') { stage('Setup') {
steps { steps {
echo 'Setting up test environment' echo 'Setting up test environment'
sh 'echo setup' sh 'echo setup'
script { script {
currentBuild.displayName = env.VERSION currentBuild.displayName = env.VERSION
} }
} }
} }
} }
post { post {
success { success {
script { script {
publish = sh script: "git log -1 | grep '\\[no publish\\]'", returnStatus: true publish = sh script: "git log -1 | grep '\\[no publish\\]'", returnStatus: true
if (publish != 0) { if (publish != 0) {
echo 'Deploying' echo 'Deploying'
sh 'echo deploy' sh 'echo deploy'
} else { } else {
echo 'Build successful, Commit not marked for deploying' echo 'Build successful, Commit not marked for deploying'
currentBuild.result = "UNSTABLE" currentBuild.result = "UNSTABLE"
} }
} }
} }
} }
} }
+40 -40
View File
@@ -1,40 +1,40 @@
pipeline { pipeline {
agent any agent any
environment { environment {
VERSION = VersionNumber([ VERSION = VersionNumber([
versionNumberString: versionNumberString:
'${BUILDS_ALL_TIME}', '${BUILDS_ALL_TIME}',
versionPrefix: '1.0.', versionPrefix: '1.0.',
worstResultForIncrement: 'SUCCESS' worstResultForIncrement: 'SUCCESS'
]) ])
publish = 0 publish = 0
} }
stages { stages {
stage('Setup') { stage('Setup') {
steps { steps {
echo 'Setting up test environment' echo 'Setting up test environment'
sh 'npm ci' sh 'npm ci'
sh 'nodejs jenkins.js ${VERSION}' sh 'nodejs jenkins.js ${VERSION}'
script { script {
currentBuild.displayName = env.VERSION currentBuild.displayName = env.VERSION
} }
} }
} }
} }
post { post {
success { success {
script { script {
publish = sh script: "git log -1 | grep '\\[no publish\\]'", returnStatus: true publish = sh script: "git log -1 | grep '\\[no publish\\]'", returnStatus: true
if (publish != 0) { if (publish != 0) {
echo 'Deploying' echo 'Deploying'
sh 'npm publish' sh 'npm publish'
} else { } else {
echo 'Build successful, Commit not marked for deploying' echo 'Build successful, Commit not marked for deploying'
currentBuild.result = "UNSTABLE" currentBuild.result = "UNSTABLE"
} }
} }
} }
} }
} }
+1466
View File
File diff suppressed because it is too large Load Diff