How to trigger a job at a certain time in Jenkins pipeline?

2020-09-15 Thread zil...@gmail.com
I see this, but I don't understand how to implement it for my use case. https://www.codependentcodr.com/scheduled-builds-in-jenkins-scripted-pipelines.html I want JobA to trigger JobB, but at a certain time. I do this now *Step in JobA to trigger JobB* build job: JobB, wait: true ...but I

Re: How to trigger a job at a certain time in Jenkins pipeline?

2020-09-15 Thread zil...@gmail.com
Fabi, Using this trick? https://www.quora.com/How-can-I-pass-a-parameter-from-one-job-to-another-in-Jenkins-using-property-file On Tuesday, September 15, 2020 at 11:07:18 AM UTC-4 zil...@gmail.com wrote: > Hi Fabi, > > Great idea. How can JobA set a flag for JobB that persists when

Re: How to trigger a job at a certain time in Jenkins pipeline?

2020-09-15 Thread zil...@gmail.com
Hi Fabi, Great idea. How can JobA set a flag for JobB that persists when JobB runs at 9:00pm ET? On Tuesday, September 15, 2020 at 10:56:48 AM UTC-4 fcenedese wrote: > > >...but I wish I can do this (for illustration only, the cron option does > not exist of course) > > > >Step in JobA to

Re: How to trigger a job at a certain time in Jenkins pipeline?

2020-09-15 Thread zil...@gmail.com
s, > Gianluca. > > > Il giorno martedì 15 settembre 2020 alle 15:40:20 UTC+1 zil...@gmail.com > ha scritto: > >> I see this, but I don't understand how to implement it for my use case. >> >> https://www.codependentcodr.com/scheduled-builds-in-jenkins-scripted-pipelines

Re: How to trigger a job at a certain time in Jenkins pipeline?

2020-09-15 Thread zil...@gmail.com
t; So, "Build" job will archive, let's say a JSON listing all microservices > that need to be deployed. Then "Deploy" job will look for that list and if > it's not empty, it will deploy all those listed microservices. > > I hope that helps. > > Cheers, > Gianluc

Copied artifact not shown in job?

2020-09-21 Thread zil...@gmail.com
I have a JobA that copies an artifact produced JobB JobA stage('Get dependency checker failures report') { try { copyArtifacts projectName: "JobB", filter: 'DependencyCheckerFailuresReport.yml', fingerprintArtifacts: true,

Re: Copied artifact not shown in job?

2020-09-21 Thread zil...@gmail.com
I even added the "onlyIfSuccessful" option, to no avail archiveArtifacts artifacts: "DependencyCheckerFailuresReport.yml", fingerprint: true, onlyIfSuccessful: false On Monday, September 21, 2020 at 6:06:46 PM UTC-4 zil...@gmail.

Suspended build nodes?

2020-09-21 Thread zil...@gmail.com
I create an AWS spot fleet for my build nodes, and set up a fleet using the Amazon EC2 Fleet plugin in my Jenkins config that refers to this spot fleet, and the fleet creates just fine. I set up the fleet to scale down if no activity on a node for 60 minutes. I find that some of the nodes go

Re: How to refer to an object in a shared library?

2020-09-18 Thread zil...@gmail.com
Venkatesh, That was it. Thanks. Chris On Friday, September 18, 2020 at 3:52:01 PM UTC-4 zil...@gmail.com wrote: > Oh, let me try that. Thanks > > On Friday, September 18, 2020 at 2:51:47 AM UTC-4 venh...@gmail.com wrote: > >> Hi, >> >> Even if you are importing th

Re: How to refer to an object in a shared library?

2020-09-17 Thread zil...@gmail.com
com.company.deployment.common MyClass mc = new MyClass() But I get the following with I try to run either script1 or script2 unable to resolve class MyClass What else do I need to do? On Thursday, September 17, 2020 at 3:22:46 PM UTC-4 zil...@gmail.com wrote: > I use this extensibly in my pipeli

How to refer to an object in a shared library?

2020-09-17 Thread zil...@gmail.com
I use this extensibly in my pipelines https://www.jenkins.io/doc/book/pipeline/shared-libraries/ For example, I can have the following files /path/src/com/company/deployment/script1.groovy /path/src/com/company/deployment/script2.groovy Now I want both scripts to refer to a common object in

Re: Suppressing certain builds

2020-09-17 Thread zil...@gmail.com
Can you give a simple example? On Thursday, September 17, 2020 at 12:17:36 PM UTC-4 jeremy@riftio.com wrote: > I use scripted pipelines > > I would like certain builds to abort early. (1) if it is just a branch > creation event, (2) if the commit message is "bump" and (3) if the only >

Re: How to refer to an object in a shared library?

2020-09-18 Thread zil...@gmail.com
.MyClass obj = new > com.company.deployment.common.MyClass() > > Regards, > Venkatesh > > > On Fri, Sep 18, 2020 at 12:56 AM zil...@gmail.com > wrote: > >> I use this extensibly in my pipelines >> https://www.jenkins.io/doc/book/pipeline/shared-libraries/ >> >> For example, I can

Share files between pipelines?

2020-09-16 Thread zil...@gmail.com
I posted this in Stackoverflow but i thought I'd post it here too, since this is a Jenkins specific group https://stackoverflow.com/questions/63923156/sharing-files-between-jenkins-pipelines I want to share a file between two different pipelines, running on 2 different nodes. I tried to use

Re: Share files between pipelines?

2020-09-16 Thread zil...@gmail.com
oking at the Jenkins user interface > for "Full project name: " > See screenshot. > > Ah ... remember that you have to escape the "/" with "%2F" in the pipeline > code. > > > Il giorno mercoledì 16 settembre 2020 alle 16:48:35 UTC+1 zil...@gmai

Get build number of spawned job?

2020-09-16 Thread zil...@gmail.com
If I spawn a job in jenkins, like this Pipeline1: build job: "CommonPipeline", wait: true You see this in the Jenkins console for Pipeline1 Scheduling project: CommonPipeline Starting building: Starting build CommonPipeline #100 Now if I start another pipeline at the same time Pipeline1

Re: Get build number of spawned job?

2020-09-16 Thread zil...@gmail.com
in the ? thanks, Chris On Wednesday, September 16, 2020 at 4:37:48 PM UTC-4 zil...@gmail.com wrote: > If I spawn a job in jenkins, like this > > Pipeline1: > build job: "CommonPipeline", > wait: true > > You see this in the Jenkins console for Pipeline1 > > Scheduli

Re: Get build number of spawned job?

2020-09-16 Thread zil...@gmail.com
ILD_ID of the upstream job > (Jenkins terminology for the job that called "build job"): > > build job: "CommonPipeline", wait: true, parameters: [ [name: UPSTREAM_ID, > value: env.BUILD_ID], ... ] > > Cheers, > Gianluca. > > Il giorno mercoledì 16 settembr

Re: Get build number of spawned job?

2020-09-16 Thread zil...@gmail.com
to author Forward On Wednesday, September 16, 2020 at 4:37:48 PM UTC-4 zil...@gmail.com wrote: > If I spawn a job in jenkins, like this > > Pipeline1: > build job: "CommonPipeline", > wait: true > > You see this in the Jenkins console for Pipeline1 > &g

Re: Script to get Jenkins CentOS versions?

2020-11-27 Thread zil...@gmail.com
,"Class":"","Name":"library/jenkins","Action":"pull"}]}]} On Friday, November 27, 2020 at 1:48:19 AM UTC-5 ice...@googlemail.com wrote: > try https://registry.hub.docker.com/v2/library/jenkins/tags/list > > zil...@gmail.com sch

Re: Error while trying to run "source" command

2020-11-25 Thread zil...@gmail.com
Have you tried $ sudo source "$HOME/.sdkman/bin/sdkman-init.sh" On Monday, November 23, 2020 at 1:54:23 PM UTC-5 jibs...@gmail.com wrote: > > Hello every one, I'm trying o build a .war file using Grails. For this I > already Installed Grails on my Jenkins Node and on the way I did it, before

Re: Error while trying to run "source" command

2020-11-25 Thread zil...@gmail.com
it.sh" On Wednesday, November 25, 2020 at 10:02:13 AM UTC-5 jibs...@gmail.com wrote: > Yes brother but it accept the command but do nothing > > El mié, 25 nov 2020 a las 9:43, zil...@gmail.com () > escribió: > >> Have you tried >> >> $ sudo source "$HOM

Script to get Jenkins CentOS versions?

2020-11-25 Thread zil...@gmail.com
I want to use the Groovy script in this post to get Jenkins versions. So I do this, where I change the docker_image_tags_url to point to a Jenkins end point. // Import the JsonSlurper class to parse

Re: Script to get Jenkins CentOS versions?

2020-11-25 Thread zil...@gmail.com
gt; On Wed, Nov 25, 2020 at 7:58 AM zil...@gmail.com wrote: > >> I essentially want to get this list, but in a JSON format in an HTTP >> response. But using this link as my docker_image_tags_url value for my >> script doesn't work of course, that is, it gives a blank list. &g

Re: Script to get Jenkins CentOS versions?

2020-11-26 Thread zil...@gmail.com
t; See https://docs.docker.com/registry/spec/api/#tags for details. And > remember that this endpoint has a limit on the numbe rof requests in a > certain timeframe, so be sure to cache the result. > zil...@gmail.com schrieb am Mittwoch, 25. November 2020 um 16:35:57 UTC+1: > >>

Re: Script to get Jenkins CentOS versions?

2020-11-26 Thread zil...@gmail.com
:03:21.274810611Z", "api_call_txnid": "REPOSREQ-29168001-2818-486d-9af5-45c455b6155e", "namespace": "library", "repository": "jenkins", "tag": "list" } } On Thursday, November 26, 2020 at 10:10:01

Re: Help with error when using PluginsWrapper() in pipeline

2020-12-19 Thread zil...@gmail.com
This works just as well (posted on a thread here), and no dumps. def plugins = Jenkins.instance.pluginManager.plugins.*findAll* { !(it.shortName in ['job-dsl', 'structs']) }.*collect* { "*${it.shortName}*: *${it.version}*" } On Saturday, December 19, 2020 at 12:43:47 PM UTC-5 zil...

Help with error when using PluginsWrapper() in pipeline

2020-12-19 Thread zil...@gmail.com
I have the following line in my pipeline to get the currently installed plugins. def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins() and it dumps the following. Any ideas why? I can run the code in the Scripts console. an exception which occurred: in field

Re: Where are jekins logs?

2020-11-12 Thread zil...@gmail.com
Thank you, lol! On Thursday, November 12, 2020 at 10:57:25 AM UTC-5 r.fuereder wrote: > Sorry, I could not resist: > https://lmgtfy.app/?q=where+are+docker+logs+stored > > > > > > *From:* jenkins...@googlegroups.com *On > Behalf Of *zil...@gmail.com > *Sent:*

Where are jekins logs?

2020-11-11 Thread zil...@gmail.com
I'm getting an HTTP 504 error the very first time I log in to a newly set up Jenkins server (v2.249.3) running as a Docker container inside a Linux host. After several tries, I can eventually log in. Any restart after that works fine too. It's just during the very first login attempl. Where

Is the Jenkins plugins server down?

2020-11-13 Thread zil...@gmail.com
I'm trying to update my plugins from my Manage Plugins page and I'm getting this error. I also get the error if I cut/paste the URL to my browser. java.io.IOException: Server returned HTTP response code: 503 for URL: https://get.jenkins.io/plugins/ldap/1.25/ldap.hpi at

Re: Is the Jenkins plugins server down?

2020-11-13 Thread zil...@gmail.com
Thank you! On Friday, November 13, 2020 at 4:21:06 PM UTC-5 slide wrote: > The plugin site is currently having issues. The infra team is working VERY > hard to resolve the issue. > > On Fri, Nov 13, 2020 at 2:06 PM zil...@gmail.com wrote: > >> I'm trying to update my p

Re: Where are jekins logs?

2020-11-12 Thread zil...@gmail.com
essing-the-jenkins-console-log-through-docker-logs > > > > HTH Reinhold > > > > *From:* jenkins...@googlegroups.com *On > Behalf Of *zil...@gmail.com > *Sent:* Mittwoch, 11. November 2020 22:26 > *To:* Jenkins Users > *Subject:* Where are jekins logs?

Use AWS IAM instead of LDAP for Jenkins account login?

2021-01-21 Thread zil...@gmail.com
Is it possible to use AWS IAM instead of LDAP for users' login into Jenkins? Thanks, Chris -- 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

Re: Increasing number of unavailable plugin updates

2021-01-21 Thread zil...@gmail.com
Thanks Mark! On Wednesday, January 20, 2021 at 9:31:37 PM UTC-5 Mark Waite wrote: > On Wed, Jan 20, 2021 at 4:13 PM Alan Sparks > wrote: > >> We’re running the LTS version of Jenkins (2.263.2). Starting a few >> weeks back or so, we’re getting more and more updates listed in the plugin >>

EC2 Spot Fleet Cloud setup does not see AWS spot fleet?

2021-01-18 Thread zil...@gmail.com
Jenkins v2.263.1 In the AWS Spot Fleet console, I set up a spot fleet from a launch template, with 10 on-demand instances, in the SAME region, AZ, VPC, and SG as my Jenkins master node, and it wen't to the "Fulfilled" state. Now when I go to Manage Jenkins -> Manage Nodes and Clouds ->

Re: EC2 Spot Fleet Cloud setup does not see AWS spot fleet?

2021-01-18 Thread zil...@gmail.com
I found it. When setting up the Spot fleet on the AWS console, the "Maintain target capacity" must be checked. On Monday, January 18, 2021 at 2:33:07 PM UTC-5 zil...@gmail.com wrote: > Jenkins v2.263.1 > > In the AWS Spot Fleet console, I set up a spot fleet from a launch

Re: Running packer via pipeline script

2021-01-18 Thread zil...@gmail.com
It turns out my builder block was set up with the wrong security group. Once I set this up correctly, the above configuration worked. On Wednesday, January 13, 2021 at 4:06:35 PM UTC-5 zil...@gmail.com wrote: > I'm trying to create an AMI (for Jenkins master in this case), and I h

Running packer via pipeline script

2021-01-13 Thread zil...@gmail.com
I'm trying to create an AMI (for Jenkins master in this case), and I have the following Packer template, which as you see needs an SSH_PRIVATE_KEY. { "variables" : { "aws_access_key" : "{{ env `AWS_ACCESS_KEY` }}", "aws_secret_key" : "{{ env `AWS_SECRET_KEY` }}",

Re: Variable indirection in a pipeline?

2021-02-22 Thread zil...@gmail.com
It's println "${env."${env.BUILD_ENV}_deployed"}" On Monday, February 22, 2021 at 9:25:50 PM UTC-5 zil...@gmail.com wrote: > In my Jenkins system configuration page, I have 3 variables defined, > namely, sandbox_deployed, staging_deployed, and production_deployed.

Variable indirection in a pipeline?

2021-02-22 Thread zil...@gmail.com
In my Jenkins system configuration page, I have 3 variables defined, namely, sandbox_deployed, staging_deployed, and production_deployed. In my pipeline, I want to access one of these variables, based on a pipeline property, BUILD_ENV, defined in the job's configuration page. IOW, in my

Jenkins build node remote directory setting not used?

2021-08-19 Thread zil...@gmail.com
I set up a Windows build node, and set its "Remote root directory" to X:\jenkins. However, the jobs keep using C:\jenkins. Why is that? how can I set the jobs to use X:\jenkins if not this way? Thanks, Chris -- You received this message because you are subscribed to the Google Groups

Using multi-branch pipeline folder properties in a job?

2021-07-13 Thread zil...@gmail.com
I hav a Jenkins folder that contains several jobs. Some of the jobs, not all, are multi-branch pipelines. The multi-pipeline jobs' configuration page has a setting for "Folder properties" and I created a simple string key/value pair in there. How can I reference this in my pipeline? I've tried

Ansible ad-hoc inventory not working when executed in a shell command in a Jenkins pipeline?

2021-08-12 Thread zil...@gmail.com
Since my ansible-playbook command works in several places, I don't think this is an Ansible issue, so I posted here,. Please see my Stackoverflow question. https://stackoverflow.com/questions/68751100/ansible-ad-hoc-inventory-not-working-when-executed-in-a-shell-command-in-a-jenki Thanks,

Extensible choice using output of another extensible choice?

2021-08-06 Thread zil...@gmail.com
I want to setup a Jenkins pipeline job that has 2 extensible choice parameters. The first parameter, GIT_BRANCH, lets the user choose a certain branch from a multi-pipline branch job. Then I want the second extensible choice parameter take the value from GIT_BRANCH, and present the. user with

How to run a job as user other than "anonymous?"

2022-03-01 Thread zil...@gmail.com
I'm logged in as my user account (an admin) in Jenkins. I have project-based security on, with no access to "anonymous" user. Now when I run my Jenkins jobs manually, or via cron, the jobs run as "anonymous" user. How can I set my jobs to run as "jenkins" user by default? I wonder if this is

Re: Why are ALL my Jenkins jobs "Running as anonymous?"

2022-03-01 Thread zil...@gmail.com
I found it. In Manage Jenkins -> Configure Global Security, toward the middle of page there's a section called Access Control For Builds. The Strategy was set to Run as anonymous, I set it to Run as SYSTEM. On Tuesday, March 1, 2022 at 10:02:49 PM UTC-5 zil...@gmail.com wrote: > My J

Why are ALL my Jenkins jobs "Running as anonymous?"

2022-03-01 Thread zil...@gmail.com
My Jenkins box uses Linux groups based security, and I set up Matrix-based security on my configuration page. How come ALL my jobs are "Running as anonymous" (seen on jobs' console output), regardless on how they're triggered? - Me logged in as my user (as an admin) - Pipeline scan - Cron -

How to alleviate error when running a multi-branch pipeline scan?

2023-09-05 Thread zil...@gmail.com
I created a new multi-branch pipeline, but made a mistake and configured it to scan ALL branches, which is a LOT of them. I therefore deleted the pipeline. I created another one, and this time only included the master branch. However, when I ran a scan, I get FATAL: Failed to recompute

Re: How to alleviate error when running a multi-branch pipeline scan?

2023-09-05 Thread zil...@gmail.com
BTW. before deleting the whole var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/ directory, I looked for the config.lock file and it wasn't there. On Tuesday, September 5, 2023 at 4:50:15 PM UTC-4 zil...@gmail.com wrote: > I created a new multi-branch pipeline, but made a mist

Re: How to alleviate error when running a multi-branch pipeline scan?

2023-09-05 Thread zil...@gmail.com
I even restarted my Jenkins master node to no avail. Chris On Tuesday, September 5, 2023 at 4:52:04 PM UTC-4 zil...@gmail.com wrote: > BTW. before deleting the whole > var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/ directory, > I looked for the config.lock file and

For a multi-branch pipeline what is causing automatic scanning/indexing?

2023-09-07 Thread zil...@gmail.com
I have a multi-branch pipeline and have all of the options to trigger a scan unchecked. Yet, I see it scanning/indexing. How/why? How can I stop it? Thanks, Chris -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

How to share a workspace between 2 pipelines?

2023-09-07 Thread zil...@gmail.com
I have 2 pipeline jobs where job1 triggers job2. I want job2 to run in the same build node and workspace as job1. I've done the following job1: node("linux-ubuntu") { echo "Node: $env.NODE_NAME" ws { "$env.WORKSPACE/test" } dir ("$env.WORKSPACE/test") { sh "touch

Re: Save and Apply button do nothing on copied job

2022-12-31 Thread zil...@gmail.com
I can Save and Apply on other jobs, just not this copied one. Chris On Saturday, December 31, 2022 at 8:12:35 PM UTC-5 zil...@gmail.com wrote: > I have updated all the plugins. > > Chris > > On Saturday, December 31, 2022 at 8:10:50 PM UTC-5 zil...@gmail.com wrote: > >

Save and Apply button do nothing on copied job

2022-12-31 Thread zil...@gmail.com
Jenkins 2.346.3 run as a docker container. I copied a Freeform job and called it test-workspace When I configure the test-workspace job, I click either the Save or Apply buttons, but NOTHING happens - no logs, no feedback, no error, no green bar flash on top of page. NADA! I disabled

Re: Save and Apply button do nothing on copied job

2022-12-31 Thread zil...@gmail.com
I have updated all the plugins. Chris On Saturday, December 31, 2022 at 8:10:50 PM UTC-5 zil...@gmail.com wrote: > Jenkins 2.346.3 run as a docker container. > > I copied a Freeform job and called it test-workspace > > When I configure the test-workspace job, I click either th

Re: Docker container stops on a Jenkins restart?

2023-01-01 Thread zil...@gmail.com
ilure > <https://docs.docker.com/engine/reference/run/#restart-policies---restart> to > the docker run <…​> jenkins/jenkins command > > On Sunday, January 1, 2023 at 11:21:23 AM UTC-7 zil...@gmail.com wrote: > >> I used to not have this issue with the older Jen

Re: Another way to uninstall a plugin?

2023-01-03 Thread zil...@gmail.com
Thanks. It's a deprecated plugin. I'm trying to uninstall all the indicated deprecated plugins, but they just keep coming back after a restart. They are disabled though. On Monday, January 2, 2023 at 8:57:27 AM UTC-5 ice...@googlemail.com wrote: > zil...@gmail.com schrieb am Sonntag, 1. Jan

Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
Sorry I'm using Publish Over FTP <https://plugins.jenkins.io/publish-over-ftp/> On Thursday, January 12, 2023 at 10:42:20 AM UTC-5 zil...@gmail.com wrote: > I'm currently using the FTP Publisher > <https://plugins.jenkins.io/ftppublisher/> plugin to publish to an FTP

Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
Ha. I'm not alone re: the Publish over SSH plugin https://www.reddit.com/r/jenkinsci/comments/ef5bkh/copying_files_via_sftp_using_declaritive_andor/ Chris On Thursday, January 12, 2023 at 11:04:17 AM UTC-5 zil...@gmail.com wrote: > Nice. How do I use it in a pipeline? The plugin page j

Re: Another way to uninstall a plugin?

2023-01-12 Thread zil...@gmail.com
; but that's one way that has worked for me. > > On Sunday, January 8, 2023 at 5:31:34 PM UTC-7 zil...@gmail.com wrote: > >> No it's not the WMI Windows Agents plugin since we're totally a Linux >> shop. >> >> I'll try your suggestion of "hovering" the "Uninstall

Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
AM UTC-5 slide wrote: > There is the Publish Over SSH plugin that is similar to the one you are > using. https://plugins.jenkins.io/publish-over-ssh/ > > On Thu, Jan 12, 2023 at 8:46 AM zil...@gmail.com wrote: > >> Sorry I'm using Publish Over FTP >> <https://plugi

SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
I'm currently using the FTP Publisher plugin to publish to an FTP server. However, IT moved to a secure FTP server. Is there an equivalent SFTP Plugin? I did look to no avail. My Jenkins jobs are running on Windows build nodes. TIA, Chris -- You

Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
e: image.png] > > On Thu, Jan 12, 2023 at 10:24 AM zil...@gmail.com > wrote: > >> I did look at that, and https:/YOURJENKINS/pipeline-syntax, but no >> mention of `SSH Publisher >> >> On Thursday, January 12, 2023 at 12:09:36 PM UTC-5 slide wrote: >> >&g

Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
e a UI to generate the proper > pipeline syntax. https:/YOURJENKINS/directive-generator/ > > On Thu, Jan 12, 2023 at 9:54 AM zil...@gmail.com wrote: > >> Ha. I'm not alone re: the Publish over SSH plugin >> >> >> https://www.reddit.com/r/jenkinsci/comments/ef5bkh/copy

Docker container stops on a Jenkins restart?

2023-01-01 Thread zil...@gmail.com
I used to not have this issue with the older Jenkins version that this installation replaced. I updated to Jenkins v2.346.3 and I start it as a Docker container like this $ docker run --rm -d -p 8080:8080 -v /mnt/jenkins_master/jenkins_home:/var/jenkins_home --name jenkins_master

Another way to uninstall a plugin?

2023-01-01 Thread zil...@gmail.com
Jenkins v2.346.3 running as a docker container I go to the Plugins Manager page, click the red-circled "x" and see "Uninstallation pending". I then restart Jenkins via "myJenkins.domain.com/restart", but then see the plugin there again. What gives? Is there a different way to uninstall a

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
Wednesday, December 7, 2022 at 3:29:18 PM UTC-5 zil...@gmail.com wrote: > I have > > $ java -version > > openjdk version "1.8.0_342" > > OpenJDK Runtime Environment (build 1.8.0_342-b07) > > OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode) > > O

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
(GlobalMatrixAuthorizationStrategy.java:133) at hudson.security.SidACL._hasPermission(SidACL.java:73) at hudson.security.SidACL.hasPermission2(SidACL.java:54) at hudson.security.ACL.checkPermission(ACL.java:76) On Wednesday, December 7, 2022 at 3:23:21 PM UTC-5 zil...@gmail.com wrote

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
$TaskImpl.run(TaskGraphBuilder.java:177) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1161) On Wednesday, December 7, 2022 at 3:41:09 PM UTC-5 zil...@gmail.com wrote: > I updated Java to no avail > > $ java -version &g

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
Damn, I found it I had to rename $JENKINS_HOME/plugins/ruby-runtime.api to $JENKINS_HOME/plugins/ruby-runtime.api.disabled. Chris On Wednesday, December 7, 2022 at 3:48:25 PM UTC-5 zil...@gmail.com wrote: > More logs, this is the first log I see. Again I renamed the > $HOME_JENKINS/p

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
I have $ java -version openjdk version "1.8.0_342" OpenJDK Runtime Environment (build 1.8.0_342-b07) OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode) On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com wrote: > Also I see this in the logs, and loo

Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
I'm attempting to update from 2.263.1 to 2.375.1 (huge gap I know), and I'm getting this on the Jenkins page. It just shows 2 Jenkins butler pics, a large black circle, and a large blue circle with a question mark in the middle. I've even renamed my $JENKINS_HOME/plugins and

Re: Help with Publish Over SSH plugin?

2023-01-30 Thread zil...@gmail.com
//github.com/jenkinsci/publish-over-ssh-plugin/blob/3ffc0d5b1131611ef030d28d37fb4f8415574b37/src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java#L406 > > On Fri, Jan 27, 2023 at 11:27 AM zil...@gmail.com > wrote: > >> Sorry if this is not the correct forum

Re: Help with Publish Over SSH plugin?

2023-01-30 Thread zil...@gmail.com
t; plugins do. I am not sure if there is a maintainer for that plugin right > now. > > On Mon, Jan 30, 2023 at 1:27 PM 'christop...@googlemail.com' via Jenkins > Users wrote: > >> >> Wouldn't a proper entry in the known-hosts file help here? >> >> zil...@g

Help with Publish Over SSH plugin?

2023-01-27 Thread zil...@gmail.com
Sorry if this is not the correct forum for plugins help. I use https://plugins.jenkins.io/publish-over-ssh/ to upload to a secure FTP server. Is there a way to set it disable "Strict host key checking"? At least it's not obvious to me. By this I mean, when you SSH to a machine (the plugin uses

Re: Groovy script to list deprecated/obsolete plugins in my system?

2023-01-08 Thread zil...@gmail.com
I found it here https://docs.cloudbees.com/docs/cloudbees-ci-kb/latest/client-and-managed-masters/ci-2-277-1-2-tables-to-divs On Sunday, January 8, 2023 at 7:33:26 PM UTC-5 zil...@gmail.com wrote: > While upgrading Jenkins I came across a script that I was able to run in > the Script C

Groovy script to list deprecated/obsolete plugins in my system?

2023-01-08 Thread zil...@gmail.com
While upgrading Jenkins I came across a script that I was able to run in the Script Console that show which of my currently installed plugins are either obsolete or deprecated. Now I can't find it. Does anyone have one handy? Thanks, Chris -- You received this message because you are

Re: Another way to uninstall a plugin?

2023-01-08 Thread zil...@gmail.com
; but that's one way that has worked for me. > > On Sunday, January 8, 2023 at 5:31:34 PM UTC-7 zil...@gmail.com wrote: > >> No it's not the WMI Windows Agents plugin since we're totally a Linux >> shop. >> >> I'll try your suggestion of "hovering" th

Re: Another way to uninstall a plugin?

2023-01-08 Thread zil...@gmail.com
No it's not the WMI Windows Agents plugin since we're totally a Linux shop. I'll try your suggestion of "hovering" the "Uninstall" button. Thanks On Tuesday, January 3, 2023 at 12:36:46 PM UTC-5 db...@cloudbees.com wrote: > On Tue, Jan 3, 2023 at 4:49 PM zil...@gmail.

Re: Help with Publish Over SSH plugin?

2023-01-31 Thread zil...@gmail.com
um 19:11 -0800 schrieb zil...@gmail.com: > > What other plugin would y'all recommend, that had the option to update the > known_hosts file, or have a "No strict host check" option? > > > There are other plugins that use SSH, for example the SSH Agent plugin or >

Re: Help with Publish Over SSH plugin?

2023-02-01 Thread zil...@gmail.com
as Local System, it would be the second path, but I would highly > recommend that you setup a service account just for Jenkins and run Jenkins > as that user. > > On Wed, Feb 1, 2023 at 12:03 PM zil...@gmail.com wrote: > >> When using the Publish Over SSH plugin in a job, what &quo

Re: Help with Publish Over SSH plugin?

2023-02-01 Thread zil...@gmail.com
...and logged in as user "Administrator", I can connect to the SFTP server manually. My plugin uses the "devops" user too. sftp dev...@ftp.company.com ...prompts me for the p/w, and once entered, I connect. Thanks On Wednesday, February 1, 2023 at 4:14:51 PM UTC-5 zi

Re: Help with Publish Over SSH plugin?

2023-02-01 Thread zil...@gmail.com
When using the Publish Over SSH plugin in a job, what "known_hosts" file is it using? I see one in "c:\Users\myUser\.ssh\known_hosts" but also in "c:\Windows\system32\config\systemprofile\.ssh\known_hosts" On Wednesday, February 1, 2023 at 1:42:12 AM UTC-5 dheinric wrote: > Am Dienstag, dem

"git submodule foreach" syntax error in Jenkins pipeline, but works on command line?

2023-07-12 Thread zil...@gmail.com
I can execute the following on a command line, where I just want to checkout a feature/* branch, and if the sub module does not have it, I want to checkout master. $ git submodule foreach 'git checkout feature/test-new-scripts || git checkout master' However, if I execute the same command in

Re: "git submodule foreach" syntax error in Jenkins pipeline, but works on command line?

2023-07-13 Thread zil...@gmail.com
Someone from Stackoverflow answered the same question I posted there sh(label: 'Git Submodule Checkout', script: "git submodule foreach 'git checkout feature/test-new-scripts || git checkout master'") On Wednesday, July 12, 2023 at 10:50:01 PM UTC-4 zil...@gmail.com wrote: >

How to set ssh key exchange algorithm when using Publish Over SSH plugin?

2023-06-01 Thread zil...@gmail.com
I'm using the Publish Over SSH plugin t6o upload files to our SFTP site. I'm getting this error ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection. Message: [Failed to connect session for config

In my Jenkins pipeline, why am I getting 2 different execution results with seemingly similar code, i.e. one job passes and the other one fails?

2023-06-19 Thread zil...@gmail.com
I'm writing Jenkins pipeline code and have two similar Groovy files with class definitions inside them. When I run a job using on Groovy file, the job runs fine. When I run a similar job using the other Groovy file I get an error. Please let me explain. I have the following file structure