I have a pipeline script that has private methods in
vars/ that need access to some APIs such as
method org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper getRawBuild) my question is there a way structure things such that I can approve the function that accesses this but not actually approve other things from accessing it.
One idea, but I'm not sure if it would work would be to store a class/file in
src/org/<path>/foo.groovy that I then grant the pipeline script access to... but its not clear to me if I'd also still need the Script Security approval for stuff in there.
Yes, users of this jenkins instance can point the @Library at different branches/revisions as they find necessary.
Stapler processed this HTTP request as follows, but couldn't find the resource to consume the request
-> evaluate(hudson.model.Hudson@80cc625 :hudson.model.Hudson,"/job/penkins-plugin/8/greeting")
-> evaluate(hudson.model.FreeStyleProject@1e211cfd[penkins-plugin] :hudson.model.FreeStyleProject,"/8/greeting")
-> evaluate(<penkins-plugin #8> :hudson.model.FreeStyleBuild,"/greeting")
-> evaluate(((StaplerProxy)<penkins-plugin #8>).getTarget(),"/greeting")
-> evaluate(<penkins-plugin #8>.getDynamic("greeting",...),"")
-> evaluate(io.jenkins.plugins.sample.HelloWorldAction@748042ab :io.jenkins.plugins.sample.HelloWorldAction,"")
-> No matching rule was found on io.jenkins.plugins.sample.HelloWorldAction@748042ab for ""
io.jenkins.plugins.sample.HelloWorldAction@748042ab has the following URL mappings, in the order of preference:
If path ends without '/' insert it TOKEN.groovy for url=/TOKEN VIEW.jelly for url=/VIEW BLOCKED: java.lang.String io.jenkins.plugins.sample.HelloWorldAction.getDisplayName() for url=/displayName/... BLOCKED: java.lang.String io.jenkins.plugins.sample.HelloWorldAction.getIconFileName() for url=/iconFileName/... BLOCKED: java.lang.String io.jenkins.plugins.sample.HelloWorldAction.getUrlName() for url=/urlName/... BLOCKED: java.lang.Class java.lang.Object.getClass() for url=/class/... hudson.model.Run io.jenkins.plugins.sample.HelloWorldAction.getRun() for url=/run/... BLOCKED: java.lang.String io.jenkins.plugins.sample.HelloWorldAction.getName() for url=/name/...
May 13 13:30:17 build-ci-test systemd: Starting Jenkins Continuous Integration Server... ░░ Subject: A start job for unit jenkins.service has begun execution ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A start job for unit jenkins.service has begun execution. ░░ ░░ The job identifier is 29397. May 13 13:30:17 build-ci-test jenkins: jenkins: invalid Java version: openjdk version "17.0.3" 2022-04-19 May 13 13:30:17 build-ci-test jenkins: OpenJDK Runtime Environment Temurin-17.0.3+7 (build 17.0.3+7) May 13 13:30:17 build-ci-test jenkins: OpenJDK 64-Bit Server VM Temurin-17.0.3+7 (build 17.0.3+7, mixed mode, sharing)
/usr/bin/jenkinsscript used by
systemdwill allow you to run Java 17 if you pass the
--enable-future-javaargument as shown at https://www.jenkins.io/blog/2022/03/21/java17-preview-availability/#running-jenkins-with-java
Hey guys, I am very stuck with Jenkins and need some inspiration on how to debug.
We're running a docker container with jenkins inside of AWS ECS. However our instance does not want to boot up anymore. We get the following error on startup:
SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Supporting APIs v819.v37d707a_71d9b_ (workflow-support) java.io.IOException: Failed to load: Pipeline: Supporting APIs (workflow-support 819.v37d707a_71d9b_) - Update required: Script Security Plugin (script-security 1131.v8b_b_5eda_c328e) to be updated to 1145.vb_cf6cf6ed960 or higher
For script-security the following versions are available, from new to old:
1145.vb_cf6cf6ed960 < minimum version we need according to error
1131.v8b_b_5eda_c328e < the version it claims we're using
It doesn't matter to what version I set script-security in my plugins.txt, I've tried everything newer then 1145.vb_cf6cf6ed960 but it always claims we're using 1131.v8b_b_5eda_c328e
What am I doing wrong, our jenkins is down and this is becoming a problem :(
Hi! I was using Java8 until lately. Now after upgrading to Java11 I've got an issue with the MSSQL JDBC driver JAR file. Java11 has no /lib/ext folder anymore and the only place I found that resulted in Jenkins loading the jar is: jenkins/war/WEB-INF/lib. But this folder is overridden each time I upgrade Jenkins. So I need to remember to put the JDBC driver jar in there after the upgrade each time...
I've seen that there are database plugins for SQLite and PostgreSQL. But t here is none for MSSQL...
I also found that groovy can load JDBC drivers vom Maven.org. But this doesn't work in Jenkins eighter...
@Grab(group='com.microsoft.sqlserver', module='mssql-jdbc', version='10.2.1.jre11')
def db = Sql.newInstance(dbURL,dbUsername,dbPassword,dbDriver)
This just throws an exception in the script console: No suitable ClassLoader found for grab
I'm running jenkins on Windows Server 2019 (if it matters). So any advice on how to make upgrades of jenkins easier is highly appreciated ;)
I have been trying to build the
build-timeout-plugin in preparation for cutting a new release. But I have been running into some compilation issues after updating the POM.xml file. I am seeing the below warnings which I know I should not ignore:
[WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.ConstructorProcessor6' less than -source '8' [WARNING] Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.ExportedBeanAnnotationProcessor6' less than -source '8' [WARNING] Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.QueryParameterAnnotationProcessor6' less than -source '8' [WARNING] No SupportedSourceVersion annotation found on org.kohsuke.metainf_services.AnnotationProcessorImpl, returning RELEASE_6. [WARNING] Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.metainf_services.AnnotationProcessorImpl' less than -source '8' [INFO] 5 warnings
Seems like there is some issues with either the
stapler-groovy or the
org.kohsuke.stapler packages from org.kohsuke.stapler I was forced to add to the POM might be the issue. I am wondering if there is any configuration that would fix errors I subsequently got, which are mostly
Any help would be much appreciated! Thanks
I am wondering after upgrading their plugin and run testing if anyone else has run into the following error previously?:
java.lang.NoSuchMethodError: 'boolean hudson.Extension.optional()'
I only know that it seems the
hudson.Extension I have imported in the codebase does not seem to have the method
optional() any more, but I have no glue what is wrong and why is this missing. Any tips on how to patch this would be greatly appreciated.