Changed permissions of script
Changed after_script to after_success