Re: Trouble using JenkinsRule with PluginManager

2021-06-30 Thread Ivan Fernandez Calvo
We do not use Spock, but we have a process to test jobDSL definitions 
before applying changes 
see https://github.com/elastic/apm-pipeline-library/tree/master/.ci/jobDSL 
it test that the syntax is correct and test that you can create the job.
Probably the class that helps you 
is 
https://github.com/elastic/apm-pipeline-library/blob/master/.ci/jobDSL/src/test/groovy/JobScriptsSpec.groovy
 
, also it is really tricky to configure the plugins you need 
on 
https://github.com/elastic/apm-pipeline-library/blob/master/.ci/jobDSL/build.gradle#L29-L68

El miércoles, 30 de junio de 2021 a las 16:33:56 UTC+2, 
matthi...@outlook.com escribió:

> Hi, I'm trying to use a different set of plugins for different Spock 
> Specifications. I've posted a more detail question here: 
> https://stackoverflow.com/questions/68196423/trouble-using-a-base-spock-specification-and-jenkinsrule-with-pluginmanager
>  
> I'm hoping that someone might be able to provide some insight. Thank you. 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/402a9608-e467-4f21-b66c-634d3e8894dcn%40googlegroups.com.


Trouble using JenkinsRule with PluginManager

2021-06-30 Thread Matthias Denu
Hi, I'm trying to use a different set of plugins for different Spock 
Specifications. I've posted a more detail question 
here: 
https://stackoverflow.com/questions/68196423/trouble-using-a-base-spock-specification-and-jenkinsrule-with-pluginmanager
 
I'm hoping that someone might be able to provide some insight. Thank you. 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4f148db0-39c1-4d17-9d21-3fc2fdeaef5dn%40googlegroups.com.


how to use publish-over-dropbox plugin

2021-06-30 Thread jesus fernandez
I am using Jenkins 2.299, I am trying to use the 
publish-over-dropbox(latest version) plugin for jenkins for the first time, 
but when I try to create the credentials using the kind Dropbox api token, 
I generate it and copy paste it to the token field, but then I get an ```A 
problem occurred while processing the request.
Logging ID=a615b9e8-c399-44d3-866a-5e7a71cb9a3e``` error and I get logout. 
Then I get a neverending callstack, this is the few first lines
```
2021-06-29 19:16:57.599+ [id=15]WARNING 
hudson.security.csrf.CrumbFilter#doFilter: Found invalid crumb 
2125f052b3c77f4a957e7b456a7ca37ca80fdd36dcc7a1988fb238cf721f6fb4. If you 
are calling this URL with a script, please use the API Token instead. More 
information: https://www.jenkins.io/redirect/crumb-cannot-be-used-for-script
2021-06-29 19:16:57.599+ [id=15]WARNING 
hudson.security.csrf.CrumbFilter#doFilter: No valid crumb was included in 
request for /credentials/store/system/domain/_/createCredentials by jesus. 
Returning 403.
2021-06-29 19:17:06.152+ [id=75]WARNING 
o.e.j.s.h.ContextHandler$Context#log: Error while serving 
http://localhost:8080/credentials/store/system/domain/_/createCredentials
java.io.IOException: HTTP 400 error Bad Request
Caused: java.io.IOException: {"error_description": "code doesn't exist or 
has expired", "error": "invalid_grant"}
at 
org.jenkinsci.plugins.publishoverdropbox.domain.JsonObjectRequest.execute(JsonObjectRequest.java:181)
at 
org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.readAccessTokenFromWeb(DropboxV2.java:576)
Caused: 
org.jenkinsci.plugins.publishoverdropbox.domain.model.RestException: Error 
when retrieving access token from Dropbox
at 
org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.readAccessTokenFromWeb(DropboxV2.java:578)
at 
org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.convertAuthorizationToAccessCode(DropboxV2.java:544)
at 
org.jenkinsci.plugins.publishoverdropbox.impl.DropboxTokenImpl.(DropboxTokenImpl.java:53)
Caused: java.io.IOException: Error when retrieving access token from Dropbox
at 
org.jenkinsci.plugins.publishoverdropbox.impl.DropboxTokenImpl.(DropboxTokenImpl.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at 
org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:541)
Caused: java.lang.IllegalArgumentException
at 
org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:556)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:805)
at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:85)
at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:690)
```

I have no idea what is causing this, if the plugin is not working or I am 
doing something wrong

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7c1bbf4f-73ec-4964-8f18-029e934f6c41n%40googlegroups.com.