Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. #name format version -> YYYYMMDD_DEV_PAR_<ticket_number>_<quantity_deploys>
  3. if [ -z "$1" ]
  4. then
  5. echo "ERROR: at least you must enter the first argument"
  6. else
  7. source ~/.nvm/nvm.sh
  8. DWVERSION="$(date '+%Y%m%d')_DEV_PAR_${1}_${2:-1}"
  9. 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
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement