Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #name format version -> YYYYMMDD_DEV_PAR_<ticket_number>_<quantity_deploys>
- if [ -z "$1" ]
- then
- echo "ERROR: at least you must enter the first argument"
- else
- source ~/.nvm/nvm.sh
- DWVERSION="$(date '+%Y%m%d')_DEV_PAR_${1}_${2:-1}"
- nvm use 7.7.3 && grunt --gruntfile ~/Documents/sfcc/cartridges/GruntFile.js build && dw push staging $DWVERSION && dw activate staging $DWVERSION && dw job staging CodeReplicationDevelopment
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement