mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 17:38:20 +01:00
Update Jenkinsfile
This commit is contained in:
parent
ef95e55d50
commit
558ef1b3ef
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -32,17 +32,20 @@ pipeline{
|
|||||||
sshCommand remote: remote, command: '''
|
sshCommand remote: remote, command: '''
|
||||||
set -e
|
set -e
|
||||||
export WORKSPACE=$(realpath "./jenkins/workspace/antos")
|
export WORKSPACE=$(realpath "./jenkins/workspace/antos")
|
||||||
|
[ -d build ] && rm -rf build
|
||||||
|
mkdir build
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
npm install terser
|
npm install terser
|
||||||
npm install uglifycss
|
npm install uglifycss
|
||||||
npm install typescript
|
npm install typescript
|
||||||
npm install @types/jquery
|
npm install @types/jquery
|
||||||
make ar
|
export BUILDDIR="$WORKSPACE/build"
|
||||||
|
make release
|
||||||
'''
|
'''
|
||||||
script {
|
script {
|
||||||
// only useful for any master branch
|
// only useful for any master branch
|
||||||
//if (env.BRANCH_NAME =~ /^master/) {
|
//if (env.BRANCH_NAME =~ /^master/) {
|
||||||
archiveArtifacts artifacts: 'd.ts/, release/antos-1.1.2.tar.gz', fingerprint: true
|
archiveArtifacts artifacts: 'd.ts/, build/', fingerprint: true
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user