Re: Folder Credential by credentialId not found using credentials API

2022-10-31 Thread Arnold van Wijnbergen
Hi Jesse, Gavin, Both thanks for your input. With kudos to Jesse we now have the authentication at folder context working. We adjusted our code and did an initial test. Coming days I will continue more testing, but for now this look better during the first local tests. That great community sup

Re: Folder Credential by credentialId not found using credentials API

2022-10-31 Thread 'Jesse Glick' via Jenkins Developers
I suspect you wanted https://javadoc.jenkins.io/plugin/credentials/com/cloudbees/plugins/credentials/CredentialsProvider.html#findCredentialById(java.lang.String,java.lang.Class,hudson.model.Run,com.cloudbees.plugins.credentials.domains.DomainRequirement...) which should take into account the folde

Re: Folder Credential by credentialId not found using credentials API

2022-10-30 Thread 'Gavin Mogan' via Jenkins Developers
Its been a long time since i touched this api, but wouldn't you want return findCredentials(credentialsId, Jenkins.get()); not null? On Sun, Oct 30, 2022 at 1:34 PM Arnold van Wijnbergen wrote: > Hi Jenkins Developers, > > We are currently busy with adding a new feature to OSS code signing > plu

Folder Credential by credentialId not found using credentials API

2022-10-30 Thread Arnold van Wijnbergen
Hi Jenkins Developers, We are currently busy with adding a new feature to OSS code signing plugin. In the current situation we store credentials (username/password) as global in Jenkins as credentials provider. For this we use the credentials plugin. This works well, but we want to improve thi