diff --git a/src/api/app/controllers/trigger_controller.rb b/src/api/app/controllers/trigger_controller.rb index 07a0840b6682..ba436ae17367 100644 --- a/src/api/app/controllers/trigger_controller.rb +++ b/src/api/app/controllers/trigger_controller.rb @@ -28,7 +28,8 @@ def create opts = { project: @project, package: @package, repository: params[:repository], arch: params[:arch], targetproject: params[:targetproject], targetrepository: params[:targetrepository], - filter_source_repository: params[:filter_source_repository] } + filter_source_repository: params[:filter_source_repository], + setrelease: params[:setrelease] } opts[:multibuild_flavor] = @multibuild_container if @multibuild_container.present? @token.executor.run_as { @token.call(opts) } diff --git a/src/api/app/models/token/release.rb b/src/api/app/models/token/release.rb index ebf93d405a45..9a54ff760733 100644 --- a/src/api/app/models/token/release.rb +++ b/src/api/app/models/token/release.rb @@ -33,6 +33,7 @@ def release(package_to_release, source_repository, target_repository, time_now, comment: 'Releasing via trigger event' } opts[:multibuild_container] = options[:multibuild_flavor] if options[:multibuild_flavor].present? opts[:filter_architecture] = options[:arch] if options[:arch].present? + opts[:setrelease] = options[:setrelease] if options[:setrelease].present? if package_to_release.present? release_package(package_to_release,