Create an empty git repo or reinitialize an existing one
$ git init| Some Jenkinsfile examples |
| <?php | |
| // Needs PHPExcel | |
| // https://phpexcel.codeplex.com/ | |
| function excel_to_array($inputFileName,$row_callback=null){ | |
| if (!class_exists('PHPExcel')) return false; | |
| try { | |
| $inputFileType = PHPExcel_IOFactory::identify($inputFileName); | |
| $objReader = PHPExcel_IOFactory::createReader($inputFileType); | |
| $objPHPExcel = $objReader->load($inputFileName); |
| def getProjectName() { | |
| return 'JenkinsPipeline' | |
| } | |
| def getJDKVersion() { | |
| return 'jdk1.8.0_101' | |
| } | |
| def getMavenConfig() { | |
| return 'maven-config' |
| # v. 20180110 | |
| TARGET=/var/www/B2C_America_PA/html | |
| TMPTARGET=$TARGET/../html-in-progress | |
| BACKUP=$TARGET/../html-backup | |
| USER=apache | |
| GROUP=apache | |
| echo "Temporary folder: $TMPTARGET" | |
| echo "Workspace folder: $WORKSPACE" |
| public static function ansiEncode($array = array(), $fields = array()) { | |
| if(!empty($array)) { | |
| for($i = 0; $i < count($array); $i++) { | |
| foreach($fields as $key => $value) { | |
| try { |
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| /* | |
| Please make sure to add the following environment variables: | |
| HEROKU_PREVIEW=<your heroku preview app> | |
| HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
| HEROKU_PRODUCTION=<your heroku production app> |
Create an empty git repo or reinitialize an existing one
$ git init| //form-validate is the id of the form | |
| var dataForm = new VarienForm('form-validate', true); | |
| if(dataForm.validator.validate()){ | |
| //do stuff here when the form is validated | |
| } |
| login url | |
| <?php echo Mage::getUrl('customer/account/login'); ?> | |
| logout url | |
| <?php echo Mage::getUrl('customer/account/logout'); ?> | |
| My Account url | |
| <?php echo Mage::getUrl('customer/account'); ?> | |
| Register url |
STEPS
Click on Help menu
Select Enter License
Then paste given KEY given at bottom
Finally click on Use License