build only for master
This commit is contained in:
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
cd ./frontend
|
cd ./frontend
|
||||||
|
|
||||||
if test "$1" = "edit-jenkinsfile"
|
if test "$1" = "master"
|
||||||
then
|
then
|
||||||
echo 'Install neccessary Packages'
|
echo 'Install neccessary Packages'
|
||||||
yarn install
|
yarn install
|
||||||
echo 'Build Frontend for Production'
|
echo 'Build Frontend for Production'
|
||||||
yarn run build
|
yarn run build
|
||||||
else
|
else
|
||||||
echo $1
|
echo "Skipping for non-master branch"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user