Skip to content

Commit 05facce

Browse files
authored
fixed jenkins deloyment
1 parent b911b18 commit 05facce

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Jenkinsfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ pipeline {
22
agent any
33
stages {
44
stage('build linux') {
5-
steps {
6-
sh("npm i -g bit-javascript")
7-
sh("npm i -g --unsafe")
5+
steps {
6+
sh("npm i")
7+
sh("npm run build")
8+
sh("npm i -g --unsafe")
89
sh("npm run e2e-test")
910
sh('./scripts/build-tar.sh linux')
1011
sh('./scripts/build-deb.sh')
1112
script {
1213
def releaseServer = "${env.BIT_STAGE_SERVER}" + "/update"
1314
def repo = "${env.EXTERNAL_REPO}"
1415
def currentVersion = sh script: 'cat package.json | grep version | head -1 | awk -F: \'{ print $2 }\' | sed \'s/[",]//g\' ' , returnStdout: true
15-
currentVersivimon = currentVersion.replaceAll("\\s","")
16+
currentVersion = currentVersion.replaceAll("\\s","")
1617
def debUrl = "${repo}/bit-deb/development/bit/${currentVersion}/bit_${currentVersion}_all.deb;deb.distribution=all;deb.component=development;deb.architecture=amd64"
1718
sh("mv bit-${currentVersion}.tar.gz ./distribution")
1819
sh("curl -u${REPO_TOKEN} -T ./distribution/bit_${currentVersion}_all.deb -XPUT '${debUrl}'")
@@ -29,7 +30,7 @@ pipeline {
2930
steps {
3031
sh('./scripts/build-tar.sh mac')
3132
sh('./scripts/build-brew.sh')
32-
sh("npm i -g")
33+
sh("npm i -g --unsafe")
3334
script {
3435
def releaseServer = "${env.BIT_STAGE_SERVER}" + "/update"
3536
def repo = "${env.EXTERNAL_REPO}"

0 commit comments

Comments
 (0)