Sha256: db633ca7f749b8e30dabfdbeb18e259413ef8078717e626177a6eb45904ee320
Contents?: true
Size: 502 Bytes
Versions: 20
Compression:
Stored size: 502 Bytes
Contents
<% credentials.each do |cred| %> sh "git config --global credential.<%= cred.protocol %>://<%= cred.host %>.helper cache" withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: '<%= cred.jenkins_id %>', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) { def credentials = "protocol=<%= cred.protocol %>\nhost=<%= cred.host %>\nusername=${env.USERNAME}\npassword=${env.PASSWORD}\n" sh "echo '${credentials}' | git credential approve" } <% end %>
Version data entries
20 entries across 20 versions & 1 rubygems