Closed tristanrobert closed 3 years ago
bundle exec bin/rake plugin:assets:precompile[foreman_fog_proxmox] RAILS_ENV=production DATABASE_URL=nulldb://nohost
https://github.com/theforeman/foreman-packaging/pull/6454
https://ci.theforeman.org/job/packaging_build_deb_plugin/arch=x86,label=debian,os=bionic/728/console
12:30:19 Uglifier::Error: Unexpected token: name (volume_id). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true). 12:30:19 -- 12:30:19 [36m 19[0m var index_id = $(item).attr('id'); 12:30:19 [36m 20[0m var pattern = /(host_compute_attributes_volumesattributes||compute_attribute_vm_attrs_volumesattributes)(\d+)_/i; 12:30:19 [36m 21[0m pattern_a = pattern.exec(index_id); 12:30:19 [36m 22[0m var index = pattern_a[2]; 12:30:19 [36m 23[0m return index; 12:30:19 [36m 24[0m } 12:30:19 [36m 25[0m 12:30:19 [36m 26[0m function volumeId(type,index){ 12:30:19 [91m => [0m let [91mvolumeid = '#volume' + type + '_' + index;[0m 12:30:19 [36m 28[0m return volume_id; 12:30:19 [36m 29[0m } 12:30:19 [36m 30[0m 12:30:19 [36m 31[0m function enableField(item) { 12:30:19 [36m 32[0m $(item).show(); 12:30:19 [36m 33[0m $(item).removeAttr('disabled'); 12:30:19 [36m 34[0m } 12:30:19 [36m 35[0m
ES6 syntax not suitable with foreman in production.
bundle exec bin/rake plugin:assets:precompile[foreman_fog_proxmox] RAILS_ENV=production DATABASE_URL=nulldb://nohost
https://github.com/theforeman/foreman-packaging/pull/6454
https://ci.theforeman.org/job/packaging_build_deb_plugin/arch=x86,label=debian,os=bionic/728/console
ES6 syntax not suitable with foreman in production.