Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 22:50
    batmat review_requested #3874
  • Jan 31 2019 21:29
    basil opened #3875
  • Jan 31 2019 18:18
    nisarg1499 opened #3874
  • Jan 31 2019 18:12
    nisarg1499 edited #3873
  • Jan 31 2019 18:04
    nisarg1499 edited #3873
  • Jan 31 2019 18:03
    nisarg1499 opened #3873
  • Jan 31 2019 15:53
    batmat synchronize #3865
  • Jan 31 2019 15:24
    jglick commented #3861
  • Jan 31 2019 15:18
    nisarg1499 closed #3863
  • Jan 31 2019 15:18
    nisarg1499 commented #3863
  • Jan 31 2019 15:13
    oleg-nenashev commented #3863
  • Jan 31 2019 15:11
    nisarg1499 reopened #3863
  • Jan 31 2019 15:11
    nisarg1499 closed #3863
  • Jan 31 2019 15:01
    nisarg1499 synchronize #3863
  • Jan 31 2019 14:54
    batmat synchronize #3865
  • Jan 31 2019 14:45
    batmat synchronize #3865
  • Jan 31 2019 14:16
    Wadeck closed #3805
  • Jan 31 2019 14:12
    pjanouse commented #3802
  • Jan 31 2019 14:12
    pjanouse commented #3802
  • Jan 31 2019 14:05
    pjanouse synchronize #3802
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
tharun @tharun456 posted in Jenkins build failed - https://community.jenkins.io/t/jenkins-build-failed/2380/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@farshid616 posted in Docker plugin, how to add-host in cloud node? - https://community.jenkins.io/t/docker-plugin-how-to-add-host-in-cloud-node/2386/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@farshid616 posted in How to run docker command in Docker plugin - https://community.jenkins.io/t/how-to-run-docker-command-in-docker-plugin/2387/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@jielpe posted in Pipeline with Robot Framework and Matrix - https://community.jenkins.io/t/pipeline-with-robot-framework-and-matrix/2390/1
shriikant
@shriikant
Hi all, I wanted to setup currentbuild duration in slack notification. with this ${currentBuild.durationString} anyone having Experience. how can I do this ?
Callek
@jwood:mozilla.org
[m]

I have a pipeline script that has private methods in vars/ that need access to some APIs such as currentBuild.rawBuild (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.

jherman19446
@jherman19446
hey guys I'm building my pipeline and I only have one test left that I really want to do. I want to take our website which currently gets cloned between github and jenkins every time a push occurs and I want to test every url on the site for http status. The tool i'm using currently doesn't have a jenkins plugin and I'm wondering if any of you know of a plugin I could use to accomplish this
11 replies
Chris Maggiulli
@cmaggiulli
So why exactly is your question?
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Bob Sabiston @bsabiston posted in Jenkins BUILD_URL and RUN_DISPLAY_URL show wrong port (8080 when it is 8081) - https://community.jenkins.io/t/jenkins-build-url-and-run-display-url-show-wrong-port-8080-when-it-is-8081/2392/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Michael Duffy @gc_mduffy posted in Best practices for Jenkins Controller in Dockerfile? - https://community.jenkins.io/t/best-practices-for-jenkins-controller-in-dockerfile/2393/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Chai @chaku posted in Does jenkins lose ephemeral locks within a single build if unreferenced? - https://community.jenkins.io/t/does-jenkins-lose-ephemeral-locks-within-a-single-build-if-unreferenced/2394/1
halkeye
@halkeye:g4v.dev
[m]
@slide: I'm in a matrix chat where there's lots of microsoft people. I'm totally +1 on killing the old methods, but if you want to get some help from ms people, i might be able to make connections
Gordon Franke
@gimler

hello, i try to get email-ext working.
basically it send a email when i set to or use requestor() but developers() is always empty ;(

any hints why developers()is empty?

 [Pipeline] emailextrecipients (hide)
09:56:39    Collecting change authors...
09:56:39      build: 17
1 reply
Kaafila - Knowledge For Lifetime - $KFL
@Kaafila2020_twitter
how to find End of Life dates in Jenkins LTS versions ?
Marco Jacob
@marco-dev
Special plugin development question:
I extended pipeline plugin B from pipeline plugin A which extends SimpleBuildStep.
The pipeline syntax of plugin B is not listed although the HPI is installed.
Pipeline plugin A has a static Descriptor with Extension and Symbol annotations.
Pipeline plugin B has also a static Descriptor with Extension and different Symbol annotation.
What do I have to do to get this working?
Ulli Hafner
@uhafner:matrix.org
[m]
Something still seems to be missing. Maybe a typo? Is your plugin loaded? Is your code published in GitHub? Without seeing your code it is hard to help.
Marco Jacob
@marco-dev
Maybe I got it: I need a config.jelly for each plugin.
Ulli Hafner
@uhafner:matrix.org
[m]
Yes, this is needed in both plugins.
halkeye
@halkeye:g4v.dev
[m]
@Kaafila2020_twitter: https://www.jenkins.io/download/lts/
3 replies
ahmed rjeb
@RjebAhmed
hello i was following the plugin devlopment tutorial in the final step i faced this problem

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(((StaplerProxy)hudson.model.Hudson@80cc625).getTarget(),"/job/penkins-plugin/8/greeting")
-> evaluate(hudson.model.Hudson@80cc625.getJob("penkins-plugin"),"/8/greeting")
-> evaluate(hudson.model.FreeStyleProject@1e211cfd[penkins-plugin] :hudson.model.FreeStyleProject,"/8/greeting")
-> evaluate(((StaplerProxy)hudson.model.FreeStyleProject@1e211cfd[penkins-plugin]).getTarget(),"/8/greeting")
-> evaluate(hudson.model.FreeStyleProject@1e211cfd[penkins-plugin].getDynamic("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/... 
-> No matching rule was found on io.jenkins.plugins.sample.HelloWorldAction@748042ab for ""
please anyone can help ?
Ulli Hafner
@uhafner:matrix.org
[m]
Which URL does the action return in getUrl?
iappstudio4
@iappstudio4
Hai im new to jenkins i have doubt why i have install jenkins on ec2 instance i cant use jenkins from my localhost to deploy on aws ?
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Andrey @dronky posted in Docker-plugin: Start a build agent with extra parameters - https://community.jenkins.io/t/docker-plugin-start-a-build-agent-with-extra-parameters/2402/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Barceloniak @barceloniak1 posted in Jenkins huge CPU utilization provokes slowness - https://community.jenkins.io/t/jenkins-huge-cpu-utilization-provokes-slowness/2403/1
Sverre Moe
@DJViking
Does Jenkins support running on Java 17?
Our Jenkins is already running on Java 11. I thought I should try running on Java 17. There has been numerous improvements since Java 11, and I was thinking it might improve running Jenkins on a newer Java.
May 13 13:30:17 build-ci-test systemd[1]: 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[1594]: jenkins: invalid Java version: openjdk version "17.0.3" 2022-04-19
May 13 13:30:17 build-ci-test jenkins[1594]: OpenJDK Runtime Environment Temurin-17.0.3+7 (build 17.0.3+7)
May 13 13:30:17 build-ci-test jenkins[1594]: OpenJDK 64-Bit Server VM Temurin-17.0.3+7 (build 17.0.3+7, mixed mode, sharing)
Mark Waite
@MarkEWaite
https://www.jenkins.io/blog/2022/03/21/java17-preview-availability/ says that Java 17 support is in preview since Jenkins 2.339. The /usr/bin/jenkins script used by systemd will allow you to run Java 17 if you pass the --enable-future-java argument as shown at https://www.jenkins.io/blog/2022/03/21/java17-preview-availability/#running-jenkins-with-java
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Sebastian Hjelm @Sebastian-0 posted in Docker jenkins ssh-agent "not running inside container" in Ubuntu 22.04 - https://community.jenkins.io/t/docker-jenkins-ssh-agent-not-running-inside-container-in-ubuntu-22-04/2406/1
mPokornyETM
@mPokornyETM
Hi. Is there any way to start some job or better groovy script when jenkis starts? We starts with JCaC and it will be greate to make some special magic on first start (like starts unit test for our groovy scripts) this will improve upgrade time, because we can checks if new jenkins update work for us as well... . When not I will create new feature issue in jira
6 replies
Callek
@jwood:mozilla.org
[m]
ooo looks like that startup trigger plugin is out of date (last updated 4 years ago)
hichhiker
@hichhiker:matrix.org
[m]
pretty sure JCasC supports running Groovy code out of the box, once you have running code, you can do whatever you want...
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Jordan Kasper @jordan.kasper posted in Cant get jq to work in pipeline script - https://community.jenkins.io/t/cant-get-jq-to-work-in-pipeline-script/2408/1
mPokornyETM
@mPokornyETM
Get the code in " when it is a shell script. Used in groovy.
hichhiker
@hichhiker:matrix.org
[m]
groovy:
  - script: >
      println("This is Groovy script!");
you need the jcacs-groovy plugin installed
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@neotof posted in Error=13, Permission denied - https://community.jenkins.io/t/error-13-permission-denied/2410/1
Bram
@YungTosti

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:
1158.v7c1b_73a_69a_08
1146.vdf547f19a_473
1145.vb_cf6cf6ed960 < minimum version we need according to error
1140.vf967fb_efa55a
1138.v8e727069a_025
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 :(

7 replies
Khaos
@Khaos66

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...

@GrabConfig(systemClassLoader=true)
@Grab(group='com.microsoft.sqlserver', module='mssql-jdbc', version='10.2.1.jre11')

import groovy.sql.*

def dbURL="jdbc:sqlserver://SERVER:1433;databaseName=Jenkins"
def dbUsername="jenkins"
def dbPassword="jenkins"
def dbDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
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 ;)

4 replies
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Vinay Verma @vermavinay691591 posted in Jenkins master container restarts every 24 hrs - https://community.jenkins.io/t/jenkins-master-container-restarts-every-24-hrs/2423/1
krisstern
@krisstern:matrix.org
[m]

Hi everyone,
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 stapler-related.

Any help would be much appreciated! Thanks

(P.S. for the context: I used to be able to compile before getting a new laptop.)
halkeye
@halkeye:g4v.dev
[m]
I feel like you have you jdk set to jdk 6
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
Vinny @paste posted in What is the solution to upgrade a jenkins instance - https://community.jenkins.io/t/what-is-the-solution-to-upgrade-a-jenkins-instance/2428/1
Kris Stern
@krisstern:matrix.org
[m]

Hi all,

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.

halkeye
@halkeye:g4v.dev
[m]
Optional is listed on https://javadoc.jenkins.io/hudson/Extension.html?is-external=true so are you using a very old Jenkins dependancy?
1 reply