Re: Opinions about aggressive reuse strategy for Jenkins pipelines
I'm finding that simply moving the entire jenkinsfile into a single vars method works well enough, but they've taken this another step further by moving all the separate "def" methods called from the main method into separate vars methods. I wouldn't think there'd be any technical reason why this would be a problem, but I'm occasionally seeing weird symptoms with these "second-level" vars methods. I find that sometimes it gets to the point where it calls one of those methods, and then just fails the build at that point without any diagnostic at all. My workaround for those issues has been to simply make an exact copy of that second-level method and define it as a "def" method inside the main file, and that fixes the problem entirely. I didn't even change any of the code of the method, I just copied it into the main file, and that fixed the problem. On Tuesday, April 9, 2019 at 9:37:32 AM UTC-7, David Karr wrote: > > I work for a very large organization, on a project with many teams, > working on many microservices, all of which were generated from a > home-grown application template system. Most of the Java-based > microservices have a very similar build process. In fact, most of the > projects have an identical Jenkinsfile, with some small parameter value > differences (which are set in a different system, not in the Jenkinsfile). > > Over time, we've evolved the template and common features, including > modularizing and cleaning up the Jenkinsfile. A small shared library was > developed, to hold some of the core function definitions, even though the > basic structure of the build was still "in-line" in the Jenkinsfile. > > The latest version of this template has taken reuse just about as far as > it can go. The entire Jenkinsfile for most projects will be a small > properties block to override some defaults (that are not set in the other > system), along with a single method call, including the shared library > reference. The shared library has now expanded to specify the entire build > process, from that one method call. > > There are a handful of services in the collection that will still have > some custom changes (all in my domain), so I will reference a branch of the > shared library in those Jenkinsfiles. If my custom changes are eventually > accepted as standard (many of them have been), then they will be merged to > the master branch and I can change our Jenkinsfiles to use the master > branch. > > I'm describing all of this for background. What I'm asking the community > is, is this a reasonable strategy? I can't help the feeling that this is > taking reusability a bit too far. I can't give any technical arguments > against it, so I'm just looking for some perspective. > -- 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/fdcf2b2e-7c28-4183-93d5-0960c865ae0b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Issues after upgrade
It seems that some of the build jobs are hanging at the end. My job normally finishes up like this: Waiting for Jenkins to finish collecting data [JENKINS] Archiving ... [JENKINS] Archiving ... [CHECKSTYLE] Plug-in Result: Success - no threshold has been exceeded [CHECKSTYLE] Plug-in Result: Success - no threshold has been exceeded [FINDBUGS] Plug-in Result: Success - no threshold has been exceeded [FINDBUGS] Plug-in Result: Success - no threshold has been exceeded [PMD] Plug-in Result: Success - no threshold has been exceeded [PMD] Plug-in Result: Success - no threshold has been exceeded [PMD] Plug-in Result: Success - no threshold has been exceeded channel stopped [workspace] $ /bin/sh -xe /tmp/jenkins6227222757670508122.sh Archiving artifacts Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Finished: SUCCESS But after the upgrade, the build just hangs after the 3 PMD lines. On Fri, Apr 19, 2019 at 3:30 PM Ryan Shoemaker wrote: > Hi, > > I just upgraded from 2.79 to 2.164.2 and am seeing a few issues: > > 1. I can't load job configuration pages. When I click on the job > "configure" link, the browser just sits there spinning and the page never > loads. There are no errors/warnings in the log to indicate any problems. > I've scanned through https://issues.jenkins-ci.org/browse/JENKINS-49630, > but there's no obvious solution in there. I'm not sure how to proceed > debugging this issue. > > 2. When I load the plugins page, the log spews an error for every plugin: > "Could not find dependency jdk-tool of " I do have the JDK Tool plugin > installed, but seemingly everything depends on it and I am unable to > uninstall it. > > 3. Relating to #1, I read some discussion about it possibly being related > to the "Violations" plugin, which should be replaced by the Warnings Next > Gen plugin (along with the old "Warnings" plugin), yet I don't see the > plugin in the "Available" list on the manage plugins page. I feel like I'm > missing something obvios here. > > I do have 3 plugin updates that I haven't installed (otherwise, all of my > plugins are up-to-date): > > Matrix Auth Strategy > > Simple Theme > > SSH Slaves > > Each have a giant warning about incompatible setting formats and I haven't > figured out which of my jobs depend on these plugins (if any). > > Thanks, > > --Ryan > > -- 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/CAMhG3rJuWmdEK0zhjTe9QZm1PZ54%2BddgyizhEdsEaXiKmT5gmw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: withMaven Artifacts URL
Any update on the API to get the published artifacts url into a variable? I want to use the generated URL in mail description. This topic has a similar need, https://groups.google.com/forum/#!topic/jenkinsci-users/sPAYLh1W1cM Thanks. On Monday, August 13, 2018 at 6:03:19 PM UTC-7, Bernardo Vale wrote: > > Hey guys. > > I'm looking for a way to programmatically determine the URL of an artifact > generated by withMaven (Maven Pipeline Plugin). > > When I deploy an artifact using withMaven, it generates the URL of each > artifact inside: $JENKINS_SERVER/path/to/job/8/maven > > I'd like to programmatically consume this information. > -- 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/81cedacd-441c-4f8e-86d2-450693111cad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Issues after upgrade
Hi, I just upgraded from 2.79 to 2.164.2 and am seeing a few issues: 1. I can't load job configuration pages. When I click on the job "configure" link, the browser just sits there spinning and the page never loads. There are no errors/warnings in the log to indicate any problems. I've scanned through https://issues.jenkins-ci.org/browse/JENKINS-49630, but there's no obvious solution in there. I'm not sure how to proceed debugging this issue. 2. When I load the plugins page, the log spews an error for every plugin: "Could not find dependency jdk-tool of " I do have the JDK Tool plugin installed, but seemingly everything depends on it and I am unable to uninstall it. 3. Relating to #1, I read some discussion about it possibly being related to the "Violations" plugin, which should be replaced by the Warnings Next Gen plugin (along with the old "Warnings" plugin), yet I don't see the plugin in the "Available" list on the manage plugins page. I feel like I'm missing something obvios here. I do have 3 plugin updates that I haven't installed (otherwise, all of my plugins are up-to-date): Matrix Auth Strategy Simple Theme SSH Slaves Each have a giant warning about incompatible setting formats and I haven't figured out which of my jobs depend on these plugins (if any). Thanks, --Ryan -- 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/CAMhG3rL2sVOvvsrE7doHv9aNVKLRKYLmUH-OGvOn0uR5NPEe8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Add Publisher Maven artifacts to mail template
The template is a pretty standard template like this https://wiki.jenkins.io/download/attachments/3604514/jenkins-matrix-email-html.template?version=1=1332562186000=v2 I am trying to get maven artifacts urls Build Artifacts ${m.key.displayName} ${f} On Friday, April 19, 2019 at 9:30:49 AM UTC-7, Cyrille Le Clerc wrote: > > do you have examples of integrations of the email ext plugin with other > plugins? > Is the integration based on environment variables? > > Cyrille > > On Friday, April 19, 2019 at 2:15:11 AM UTC+2, Harsh Shah wrote: >> >> Hi, >> We have been using pipeline maven plugin and maven artifact publisher >> to display deployed artifacts by the build. >> >> We also use ext-email plugin with a template to provide notifications. >> >> How can I get the published maven artifacts from maven artifact publisher >> in my email description? >> >> >> Thanks, >> -Harsh >> > -- 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/70d2ed27-0034-45d4-a478-58c88f8f3c8b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
How do i schedule a job to run every 35 days
Hi, I want to run a job after every 35 days in jenkins. How do i schedule the job in jenkins. Could you please give the schedule in jenkins. Thanks, Sid. -- 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/fbd2965f-ab23-4d34-a4ea-0d8bc6a5c87c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Add Publisher Maven artifacts to mail template
do you have examples of integrations of the email ext plugin with other plugins? Is the integration based on environment variables? Cyrille On Friday, April 19, 2019 at 2:15:11 AM UTC+2, Harsh Shah wrote: > > Hi, > We have been using pipeline maven plugin and maven artifact publisher to > display deployed artifacts by the build. > > We also use ext-email plugin with a template to provide notifications. > > How can I get the published maven artifacts from maven artifact publisher > in my email description? > > > Thanks, > -Harsh > -- 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/a9beb712-d828-49d2-b9b7-829e86f3551e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.