sous-chefs / jenkins

Development repository for the jenkins cookbook
https://supermarket.chef.io/cookbooks/jenkins
Apache License 2.0
424 stars 636 forks source link

jenkins_slave_jnlp resource creation is not compatible with Ruby3.1 #813

Open anatolijd opened 11 months ago

anatolijd commented 11 months ago

Description

1. jenkins_slave_jnlp breaks recipe run when executed on cinc-18 client (Ruby3.1). slave_jar_url method is not executed and remote_resource has no source defined.

To fix it, I just moved slave_jar_url evaluation outside the resource declaration scope.

2. file actions notify undefined service name, this breaks recipe execution. 2nd commit removes runit services before starting new service