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 test.txt"
}
build job: "Utilities/Playground/pass-node-job2",
  parameters: [
  string(name: "BUILD_NODE", value: env.NODE_NAME),
  string(name: "WSPACE", value: "$env.WORKSPACE/test")
  ],
  wait: true
}

job2:
properties([
  parameters([
string(name: 'BUILD_NODE', defaultValue: "linux-ubuntu", description: 
'If this job is triggered by another job, it will passed in its build 
node.'),
string(name: "WSPACE", defaultValue: env.WORKSPACE, description: 
"Workspace")
  ])
])

node(env.BUILD_NODE) {
sh "echo node: $env.BUILD_NODE"
sh "echo wspace: $env.WSPACE"
dir(env.WSPACE) {
sh "pwd && ls"
}
}

Is there a better way to do this? I'm aware of the shared workspace plugin 
, but I don't think it 
supports pipelines.

-- 
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/e826c2de-70df-4cdd-a2ee-c64e11146cafn%40googlegroups.com.


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 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/266b18c5-fddb-4a8c-acb0-436674b249b4n%40googlegroups.com.


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 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 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 children of CMM-Builder 
>> org.eclipse.jgit.errors.LockFailedException: Cannot lock 
>> /var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config. 
>> Ensure that no other process has an open file handle on the lock file 
>> /var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config.lock,
>>  
>> then you may delete the lock file and retry. at 
>> org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:221) 
>> at 
>> jenkins.plugins.git.GitHooksConfiguration.disable(GitHooksConfiguration.java:139)
>>  
>> at 
>> jenkins.plugins.git.GitHooksConfiguration.lambda$configure$2f1f6402$1(GitHooksConfiguration.java:113)
>>  
>> at 
>> org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
>>  
>> at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:87)
>>  
>> at 
>> jenkins.plugins.git.GitHooksConfiguration.configure(GitHooksConfiguration.java:112)
>>  
>> at 
>> jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:377)
>>  
>> at 
>> jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:350)
>>  
>> at 
>> jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:590)
>>  
>> at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at 
>> jenkins.scm.api.SCMSource.fetch(SCMSource.java:283) at 
>> jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:640)
>>  
>> at 
>> com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
>>  
>> at 
>> com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
>>  
>> at 
>> jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1031)
>>  
>> at hudson.model.ResourceController.execute(ResourceController.java:101) at 
>> hudson.model.Executor.run(Executor.java:442) Finished: FAILURE
>>
>> I went on the Jenkins master node and deleted the whole /var.../
>> git-30f6fb77245bdf4480300d8825694e98 directory.
>>
>> However, I'm still getting the same error when I run the scan. What to do?
>>
>

-- 
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/59b73be5-f948-4bf6-84cd-f6a20fb5aa84n%40googlegroups.com.


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 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 children of CMM-Builder 
> org.eclipse.jgit.errors.LockFailedException: Cannot lock 
> /var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config. 
> Ensure that no other process has an open file handle on the lock file 
> /var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config.lock,
>  
> then you may delete the lock file and retry. at 
> org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:221) 
> at 
> jenkins.plugins.git.GitHooksConfiguration.disable(GitHooksConfiguration.java:139)
>  
> at 
> jenkins.plugins.git.GitHooksConfiguration.lambda$configure$2f1f6402$1(GitHooksConfiguration.java:113)
>  
> at 
> org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
>  
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:87)
>  
> at 
> jenkins.plugins.git.GitHooksConfiguration.configure(GitHooksConfiguration.java:112)
>  
> at 
> jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:377)
>  
> at 
> jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:350)
>  
> at 
> jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:590)
>  
> at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at 
> jenkins.scm.api.SCMSource.fetch(SCMSource.java:283) at 
> jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:640)
>  
> at 
> com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
>  
> at 
> com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
>  
> at 
> jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1031)
>  
> at hudson.model.ResourceController.execute(ResourceController.java:101) at 
> hudson.model.Executor.run(Executor.java:442) Finished: FAILURE
>
> I went on the Jenkins master node and deleted the whole /var.../
> git-30f6fb77245bdf4480300d8825694e98 directory.
>
> However, I'm still getting the same error when I run the scan. What to do?
>

-- 
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/d87e541c-7425-41ad-9a08-93c0da55bfean%40googlegroups.com.


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 children of CMM-Builder 
org.eclipse.jgit.errors.LockFailedException: Cannot lock 
/var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config. 
Ensure that no other process has an open file handle on the lock file 
/var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config.lock, 
then you may delete the lock file and retry. at 
org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:221) 
at 
jenkins.plugins.git.GitHooksConfiguration.disable(GitHooksConfiguration.java:139)
 
at 
jenkins.plugins.git.GitHooksConfiguration.lambda$configure$2f1f6402$1(GitHooksConfiguration.java:113)
 
at 
org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
 
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:87)
 
at 
jenkins.plugins.git.GitHooksConfiguration.configure(GitHooksConfiguration.java:112)
 
at 
jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:377)
 
at 
jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:350)
 
at 
jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:590)
 
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at 
jenkins.scm.api.SCMSource.fetch(SCMSource.java:283) at 
jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:640) 
at 
com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
 
at 
com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
 
at 
jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1031)
 
at hudson.model.ResourceController.execute(ResourceController.java:101) at 
hudson.model.Executor.run(Executor.java:442) Finished: FAILURE

I went on the Jenkins master node and deleted the whole /var.../
git-30f6fb77245bdf4480300d8825694e98 directory.

However, I'm still getting the same error when I run the scan. What to do?

-- 
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/9e4a5c18-9672-4f9f-82d3-ade489714e02n%40googlegroups.com.


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:

> 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 a Jenkins pipeline, I get a 
> syntax error.
> sh """
>  git submodule foreach \\'git checkout feature/test-new-scripts || git 
> checkout master\\' 
> """ 
>
> I get the following error
> + git submodule foreach "git checkout feature/test-new-scripts
> Entering 'module1' 
> "git: 1: "git: Syntax error: Unterminated quoted string
> fatal: run_command returned non-zero status for module1 
> . 
> + git checkout master" error: pathspec 'master"' did not match any 
> file(s) known to git
>
> I've tried the following syntax, where I just changed the single quotes (
> '...') in the command itself to double quotes ("..."), to no avail
> sh """
>  git submodule foreach \\"git checkout feature/test-new-scripts || git 
> checkout master\\"
> """
>
> What is the correct syntax do accomplish what I want to do? TIA
>
>

-- 
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/73af3f9e-28e3-41ee-8733-232fe1c04e94n%40googlegroups.com.


"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 a Jenkins pipeline, I get a 
syntax error.
sh """
 git submodule foreach \\'git checkout feature/test-new-scripts || git 
checkout master\\' 
""" 

I get the following error
+ git submodule foreach "git checkout feature/test-new-scripts
Entering 'module1' 
"git: 1: "git: Syntax error: Unterminated quoted string
fatal: run_command returned non-zero status for module1 
. 
+ git checkout master" error: pathspec 'master"' did not match any file(s) 
known to git

I've tried the following syntax, where I just changed the single quotes (
'...') in the command itself to double quotes ("..."), to no avail
sh """
 git submodule foreach \\"git checkout feature/test-new-scripts || git 
checkout master\\"
"""

What is the correct syntax do accomplish what I want to do? TIA

-- 
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/68b54367-f10c-4159-a50c-d8a80ef23128n%40googlegroups.com.


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

com/company/versionmgrs/

   /VersionDirector.groovy

   /VersionBuilder.groovy

   /PlatformVersionBuilder.groovy


Here are the contents of the above Groovy files, and the corresponding 
`Jenkinsfile`s that instatiates them. As you can see, they're pretty 
similar. Nothing magical, in all of them, the class name matches the Groovy 
file name.

#VersionDirector.groovy

package com.company.versionmgrs

class VersionDirector {

  VersionDirector(def file) {

this.file = file

  }

  def file

}


# Jenkinsfile

@Library("shared-lib) _

import com.company.versionmgrs.VersionDirector

node("build-node") {

  def vd = new VersionDirector()

}


#VersionBuilder.groovy

package com.company.versionmgrs


abstract class VersionBuilder {

  VersionBuilder(def file) {

this.file = file

  }

  def file

}


#PlatformVersionBuilder.groovy

package com.company.versionmgrs

class PlatformVersionBuilder extends VersionBuilder {

  PlatformVersionBuilder(def file) {

this.file = file

  }

  def file

}


# Jenkinsfile

@Library("shared-lib) _

import com.company.versionmgrs.PlatformVersionBuilder

node("build-node") {

  def builder = new PlatformVersionBuilder()

}

When I run the first Jenkinsfile that instantiates VersionDirector, I get 
no error. But when I run the second Jenkinsfile that instantiates 
PlatformVersionBuilder, I get the following error

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
failed:

/var/jenkins_home/jobs/.../PlatformVersionBuilder.groovy: 3: Invalid 
duplicate class definition of class 
com.company.versionmgrs.PlatformVersionBuilder : The source 
/var/jenkins_home/jobs/...PlatformVersionBuilder.groovy contains at least 
two definitions of the class com.company.versionmgrs.PlatformVersionBuilder.

One of the classes is an explicit generated class using the class 
statement, the other is a class generated from the script body based on the 
file name. Solutions are to change the file name or to change the class 
name.

 @ line 3, column 1.

   class PlatformVersionBuilder extends VersionBuilder {

   ^

I expect one job to pass, or fail, like the other. What am I missing? TIA

-- 
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/6878cddc-02b1-4d51-9412-45534abc0cd9n%40googlegroups.com.


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 
[ftp.company.com]. Message [Algorithm negotiation fail: 
algorithmName="server_host_key" 
jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256"
 
serverProposal="ssh-rsa"]]]


In spite of me having this in C:\Users\myUser\.ssh\config
and in C:\Windows\system32\...\.ssh\config

Host ftp.company.com
User myUser
HostName ftp.company.com
HostKeyAlgorithms=+ssh-rsa

One explanation is the plugin doesn't use either config file. What am I 
missing? TIA

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com.


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 zil...@gmail.com wrote:

> My agent is currently running under the "Administrator" account, so I did 
> update its known_hosts file to no avail.
>
> Thanks
>
> On Wednesday, February 1, 2023 at 2:39:06 PM UTC-5 slide wrote:
>
>> What user is your agent/controller running as? If you are running the 
>> controller 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 "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 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>>>>
>>>> None of the other SSH plugins do a copy over SSH.
>>>>
>>>>
>>>> Yes, of course not. They were meant as examples how host key 
>>>> verification is handled differently by other plugins that make use of SSH. 
>>>> AFAIK the "publish-over-*" plugins don't use the same underlying SSH 
>>>> library plugin and tus don't have the same capabilities. IIRR they also 
>>>> don't use Jenkins' credentials provider...
>>>>
>>>> Bye...
>>>>
>>>> Dirk
>>>>
>>>> -- 
>>>>
>>>> *Dirk Heinrichs*
>>>> Senior Systems Engineer, Delivery Pipeline
>>>> OpenText ™ Discovery | Recommind
>>>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>>>> *Email*: dhei...@opentext.com
>>>> *Website*: www.recommind.de
>>>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>>>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu 
>>>> Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, 
>>>> Registernummer HRB 10646
>>>> This e-mail may contain confidential and/or privileged information. If 
>>>> you are not the intended recipient (or have received this e-mail in error) 
>>>> please notify the sender immediately and destroy this e-mail. Any 
>>>> unauthorized copying, disclosure or distribution of the material in this 
>>>> e-mail is strictly forbidden
>>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
>>>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
>>>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
>>>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
>>>> Weitergabe dieser Mail sind nicht gestattet.
>>>>
>>> -- 
>>>
>> 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-use...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Website: http://earl-of-code.com
>>
>

-- 
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/3287abc8-974d-49f5-8269-582d29f98f4fn%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-02-01 Thread zil...@gmail.com
My agent is currently running under the "Administrator" account, so I did 
update its known_hosts file to no avail.

Thanks

On Wednesday, February 1, 2023 at 2:39:06 PM UTC-5 slide wrote:

> What user is your agent/controller running as? If you are running the 
> controller 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 "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 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>>>
>>> None of the other SSH plugins do a copy over SSH.
>>>
>>>
>>> Yes, of course not. They were meant as examples how host key 
>>> verification is handled differently by other plugins that make use of SSH. 
>>> AFAIK the "publish-over-*" plugins don't use the same underlying SSH 
>>> library plugin and tus don't have the same capabilities. IIRR they also 
>>> don't use Jenkins' credentials provider...
>>>
>>> Bye...
>>>
>>> Dirk
>>>
>>> -- 
>>>
>>> *Dirk Heinrichs*
>>> Senior Systems Engineer, Delivery Pipeline
>>> OpenText ™ Discovery | Recommind
>>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>>> *Email*: dhei...@opentext.com
>>> *Website*: www.recommind.de
>>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
>>> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
>>> This e-mail may contain confidential and/or privileged information. If 
>>> you are not the intended recipient (or have received this e-mail in error) 
>>> please notify the sender immediately and destroy this e-mail. Any 
>>> unauthorized copying, disclosure or distribution of the material in this 
>>> e-mail is strictly forbidden
>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
>>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
>>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
>>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
>>> Weitergabe dieser Mail sind nicht gestattet.
>>>
>> -- 
>>
> 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-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/6bb166be-fce3-4f01-be6b-dd6af6ade4e1n%40googlegroups.com.


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 31.01.2023 um 14:00 -0700 schrieb Alex Earl:
>
> None of the other SSH plugins do a copy over SSH.
>
>
> Yes, of course not. They were meant as examples how host key verification 
> is handled differently by other plugins that make use of SSH. AFAIK the 
> "publish-over-*" plugins don't use the same underlying SSH library plugin 
> and tus don't have the same capabilities. IIRR they also don't use Jenkins' 
> credentials provider...
>
> Bye...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
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/d317c501-823b-4f22-b262-1e8dd3e727e1n%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-31 Thread zil...@gmail.com
Thanks. I use the SSH agent plugin, but that's not strictly for FTP? I mean 
I have to script out pushing to an SFTP server? I'll look at the EC2 Cloud 
plugin, though we're not an AWS shop (on prem).

On Tuesday, January 31, 2023 at 1:34:47 AM UTC-5 dheinric wrote:

> Am Montag, dem 30.01.2023 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 
> the EC2 Cloud plugin. Both connect to agents using SSH and they offer 4 
> options for host key handling, from "strict" to "no check at all".
>
> Bye...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
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/d9cc2a65-c521-449b-97d5-d7d84a7343c1n%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread 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?

Thanks

On Monday, January 30, 2023 at 4:36:56 PM UTC-5 slide wrote:

> Yes, but it would be nice if the plugin had different options like other 
> 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...@gmail.com schrieb am Montag, 30. Januar 2023 um 17:25:49 UTC+1:
>>
>>> Bummer, thanks!
>>>
>>> On Monday, January 30, 2023 at 10:50:58 AM UTC-5 slide wrote:
>>>
>>>> I don't think the PO SSH plugin supports different methods of host key 
>>>> checking. You can see here that strict host key checking is always enabled 
>>>> and there is no setting to disable it: 
>>>> https://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 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 SSH), it'll as you
>>>>>
>>>>> "The authenticity of host 'ftp.company.com (12.70.x.x)' can't be 
>>>>> established.
>>>>>
>>>>> RSA key fingerprint is SHA256:x.
>>>>>
>>>>> Are you sure you want to continue connecting (yes/no/[fingerprint])? 
>>>>> yes
>>>>>
>>>>> Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the 
>>>>> list of known hosts."
>>>>>
>>>>> I created a test job, and working with our IT person, we don't even 
>>>>> see it proceed to the username/password authentication, so I'm "guessing" 
>>>>> it's stuck with the above
>>>>>
>>>>> TIA,
>>>>>
>>>>> 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 jenkinsci-use...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Website: http://earl-of-code.com
>>>>
>>> -- 
>> 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-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/a996ced4-3b01-49f5-b94d-02b3a1544a0an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/a996ced4-3b01-49f5-b94d-02b3a1544a0an%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/607234dd-6b12-43f2-9655-fa2ac8edd7dan%40googlegroups.com.


Re: Help with Publish Over SSH plugin?

2023-01-30 Thread zil...@gmail.com
Bummer, thanks!

On Monday, January 30, 2023 at 10:50:58 AM UTC-5 slide wrote:

> I don't think the PO SSH plugin supports different methods of host key 
> checking. You can see here that strict host key checking is always enabled 
> and there is no setting to disable it: 
> https://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 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 SSH), it'll as you
>>
>> "The authenticity of host 'ftp.company.com (12.70.x.x)' can't be 
>> established.
>>
>> RSA key fingerprint is SHA256:x.
>>
>> Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
>>
>> Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the list 
>> of known hosts."
>>
>> I created a test job, and working with our IT person, we don't even see 
>> it proceed to the username/password authentication, so I'm "guessing" it's 
>> stuck with the above
>>
>> TIA,
>>
>> 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 jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/2710a973-dd64-4f7f-86a3-bd6f3bcc654fn%40googlegroups.com.


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 SSH), it'll as you

"The authenticity of host 'ftp.company.com (12.70.x.x)' can't be 
established.

RSA key fingerprint is SHA256:x.

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added 'ftp.company.com,12.70.x.x' (RSA) to the list of 
known hosts."

I created a test job, and working with our IT person, we don't even see it 
proceed to the username/password authentication, so I'm "guessing" it's 
stuck with the above

TIA,

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/397f4fc4-698b-457f-96e0-19c85d411b8bn%40googlegroups.com.


Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
I installed the plugin without requiring a restart. Once I restarted, I see 
it now in the snippet generator. Thanks!!!

On Thursday, January 12, 2023 at 5:02:54 PM UTC-5 slide wrote:

> Do you have the plugin installed? This is what I see in the snippet 
> generator:
>
> [image: 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:
>>
>>> I would recommend always using the declarative generator that is 
>>> available on your Jenkins instance, it allows you to use 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/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 just shows 
>>>>> point-and-click UI setup options. I use the FTP publisher plugin this way 
>>>>> for example
>>>>>
>>>>> dir($WORKSPACE) {
>>>>> timeout(time: 5) { // timeout in mins
>>>>> ftpPublisher: // options
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>> On Thursday, January 12, 2023 at 10:54:16 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://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 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 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-use...@googlegroups.com.
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Website: http://earl-of-code.com
>>>>>>
>>>>> -- 
>>>> 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-use...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/ee62f76e-23fb-4585-80c3-df444a84bf1bn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/ee62f76e-23fb-4585-80c3-df444a84bf1bn%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>
>>>
>>> -- 
>>> Website: http://earl-of-code.com
>>>
>> -- 
>> 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-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/ee6d45ba-e71e-4aa6-b7eb-fca5bfd3ef9bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/ee6d45ba-e71e-4aa6-b7eb-fca5bfd3ef9bn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/0dcfdc94-dddf-45c1-a877-c86a039b9913n%40googlegroups.com.


Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
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:

> I would recommend always using the declarative generator that is available 
> on your Jenkins instance, it allows you to use 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/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 just shows 
>>> point-and-click UI setup options. I use the FTP publisher plugin this way 
>>> for example
>>>
>>> dir($WORKSPACE) {
>>> timeout(time: 5) { // timeout in mins
>>> ftpPublisher: // options
>>> }
>>> }
>>>
>>>
>>> On Thursday, January 12, 2023 at 10:54:16 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://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 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 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-use...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Website: http://earl-of-code.com
>>>>
>>> -- 
>> 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-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/ee62f76e-23fb-4585-80c3-df444a84bf1bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/ee62f76e-23fb-4585-80c3-df444a84bf1bn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/ee6d45ba-e71e-4aa6-b7eb-fca5bfd3ef9bn%40googlegroups.com.


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 just shows 
> point-and-click UI setup options. I use the FTP publisher plugin this way 
> for example
>
> dir($WORKSPACE) {
> timeout(time: 5) { // timeout in mins
> ftpPublisher: // options
> }
> }
>
>
> On Thursday, January 12, 2023 at 10:54:16 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://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 
>>>> 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 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-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Website: http://earl-of-code.com
>>
>

-- 
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/ee62f76e-23fb-4585-80c3-df444a84bf1bn%40googlegroups.com.


Re: SFTP Publisher plugin?

2023-01-12 Thread zil...@gmail.com
Nice. How do I use it in a pipeline? The plugin page just shows 
point-and-click UI setup options. I use the FTP publisher plugin this way 
for example

dir($WORKSPACE) {
timeout(time: 5) { // timeout in mins
ftpPublisher: // options
}
}


On Thursday, January 12, 2023 at 10:54:16 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://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 
>>> 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 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/b52b8ecf-2a8e-4663-b061-34b4782233ben%40googlegroups.com.


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 
> 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 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/66f8a274-5c18-45d6-bc6a-71563571750en%40googlegroups.com.


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 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/4e5b8a1c-2d88-472f-92b1-b560d5291adcn%40googlegroups.com.


Re: Another way to uninstall a plugin?

2023-01-12 Thread zil...@gmail.com
So how does the $REF directory get populated? I tried Mar's suggesting and 
it still didn't work for me.

Chris

On Sunday, January 8, 2023 at 8:07:52 PM UTC-5 Mark Waite wrote:

> Removing plugins from Docker containers has some complications that are 
> specific to the way plugins are managed in Docker containers.  We have a 
> work in progress pull request that is developing the detailed description 
> of the various scenarios to remove plugins from a container.
>
> The technique that I've used has been to remove the contents of 
> ${JENKINS_HOME}/plugins as the last step in my Dockerfile version that is 
> removing a plugin so that on the next startup of that container, the 
> current set of plugins will be copied from the "${REF}" directory into the  
> ${JENKINS_HOME}/plugins directory.  I don't know if that's the best way, 
> 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" 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.com  
>>> wrote:
>>>
>>>> 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.
>>>>
>>>
>>> Is it WMI Windows Agents Plugin?
>>>
>>> Plugins getting re-installed is expected behavior if they're a plugin 
>>> whose functionality was split ("detached") from Jenkins core in the 
>>> past, as is the case with that one. It's the only such plugin currently 
>>> deprecated as well.
>>>
>>> The only real solution is for all other plugins you have installed to 
>>> declare a core dependency of 1.547 or newer, so none of them cause the 
>>> detached plugin to be installed automatically again. Check the popup that 
>>> appears when hovering the "uninstall" button for candidates, or check the 
>>> URL /pluginManager/api/json?tree=plugins[shortName,requiredCoreVersion] in 
>>> Jenkins to learn which installed plugins have a ~9 year old core dependency 
>>> and should be modernized.
>>>
>>

-- 
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/a9c06086-69c3-4adc-8aae-656857267f72n%40googlegroups.com.


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 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 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/60b96bdd-70a4-43e1-95ab-241381ffe1f4n%40googlegroups.com.


Re: Another way to uninstall a plugin?

2023-01-08 Thread zil...@gmail.com
Ok I'll try this. Just to be safe I'll just rename my $JENKINS_HOME/plugins 
directory and the restart the container

On Sunday, January 8, 2023 at 8:07:52 PM UTC-5 Mark Waite wrote:

> Removing plugins from Docker containers has some complications that are 
> specific to the way plugins are managed in Docker containers.  We have a 
> work in progress pull request that is developing the detailed description 
> of the various scenarios to remove plugins from a container.
>
> The technique that I've used has been to remove the contents of 
> ${JENKINS_HOME}/plugins as the last step in my Dockerfile version that is 
> removing a plugin so that on the next startup of that container, the 
> current set of plugins will be copied from the "${REF}" directory into the  
> ${JENKINS_HOME}/plugins directory.  I don't know if that's the best way, 
> 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" 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.com  
>>> wrote:
>>>
>>>> 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.
>>>>
>>>
>>> Is it WMI Windows Agents Plugin?
>>>
>>> Plugins getting re-installed is expected behavior if they're a plugin 
>>> whose functionality was split ("detached") from Jenkins core in the 
>>> past, as is the case with that one. It's the only such plugin currently 
>>> deprecated as well.
>>>
>>> The only real solution is for all other plugins you have installed to 
>>> declare a core dependency of 1.547 or newer, so none of them cause the 
>>> detached plugin to be installed automatically again. Check the popup that 
>>> appears when hovering the "uninstall" button for candidates, or check the 
>>> URL /pluginManager/api/json?tree=plugins[shortName,requiredCoreVersion] in 
>>> Jenkins to learn which installed plugins have a ~9 year old core dependency 
>>> and should be modernized.
>>>
>>

-- 
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/22cc86a0-5409-4120-8d8a-40c2527aa972n%40googlegroups.com.


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 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/38ecbc60-a59a-495b-8300-6d68f545ca79n%40googlegroups.com.


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.com  wrote:
>
>> 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.
>>
>
> Is it WMI Windows Agents Plugin?
>
> Plugins getting re-installed is expected behavior if they're a plugin 
> whose functionality was split ("detached") from Jenkins core in the 
> past, as is the case with that one. It's the only such plugin currently 
> deprecated as well.
>
> The only real solution is for all other plugins you have installed to 
> declare a core dependency of 1.547 or newer, so none of them cause the 
> detached plugin to be installed automatically again. Check the popup that 
> appears when hovering the "uninstall" button for candidates, or check the 
> URL /pluginManager/api/json?tree=plugins[shortName,requiredCoreVersion] in 
> Jenkins to learn which installed plugins have a ~9 year old core dependency 
> and should be modernized.
>

-- 
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/c19c576d-afc8-4be7-a1a2-dd17ffb51286n%40googlegroups.com.


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. Januar 2023 um 19:16:34 UTC+1:
>
>> 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 plugin? I have access to the 
>> $JENKINS_HOME/plugins directory
>>
>>
> Most probably this plugin is a dependency of another plugin (possibly due 
> to core version dependency if it was a core plugin once), so it gets 
> reinstalled automatically 
>  
>
>> TIA
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d2c7b71f-ace7-4f22-98de-99c9d2b52ef4n%40googlegroups.com.


Re: Docker container stops on a Jenkins restart?

2023-01-01 Thread zil...@gmail.com
Thanks Mark!

Chris

On Sunday, January 1, 2023 at 2:23:32 PM UTC-5 Mark Waite wrote:

> https://www.jenkins.io/blog/2022/05/27/docker-image-new-lifecycle/ says 
> that beginning with Jenkins 2.332.3 the docker container lifecycle has 
> changed.
>
> add the flag --restart=on-failure 
> <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 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 
>> --memory=24g 
>> 1234567890.dkr.ecr.eu-north-1.amazonaws.com/jenkins_master:2.346.3
>>
>> Now when I got to my browser to restart Jenkins
>> myJenkins.domain.com/restart 
>>
>> the container dies? Why, and how do I prevent this? I don't see any logs 
>> indicating why.
>>
>> TIA, 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/12430f44-9e3c-4d51-930b-9ed8278b6b3an%40googlegroups.com.


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 
--memory=24g 
1234567890.dkr.ecr.eu-north-1.amazonaws.com/jenkins_master:2.346.3

Now when I got to my browser to restart Jenkins
myJenkins.domain.com/restart 

the container dies? Why, and how do I prevent this? I don't see any logs 
indicating why.

TIA, 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/33260ab5-f104-4d58-9171-e4a11a93de89n%40googlegroups.com.


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 plugin? I have access to the 
$JENKINS_HOME/plugins directory

TIA
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c933ce13-6147-43b2-aca7-3db3eb90ab1bn%40googlegroups.com.


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:
>
>> 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 ruby-runtime since it was failing the app to come up.
>>
>> Is this a bug?
>>
>> TIA,
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/82539059-34b7-4240-8f04-0e150669b7f1n%40googlegroups.com.


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 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 ruby-runtime since it was failing the app to come up.
>
> Is this a bug?
>
> TIA,
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/aa6cba6f-7e5a-4c1d-835b-2648d8abe68bn%40googlegroups.com.


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 ruby-runtime since it was failing the app to come up.

Is this a bug?

TIA,
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/065fde85-f97f-4214-91ac-b8306bfe8a34n%40googlegroups.com.


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/plugins dir.
>
> 2022-12-07 20:46:03.252+ [id=33]INFO   
>  jenkins.InitReactorRunner$1#onAttained: Listed all plugins
>
> 2022-12-07 20:46:09.644+ [id=30]INFO   
>  ruby.RubyRuntimePlugin#start: Injecting JRuby into XStream
>
> 2022-12-07 20:46:09.715+ [id=30]WARNING   
>  jenkins.model.Jenkins$5#runTask: Loading plugin ruby-runtime v0.12 
> (ruby-runtime) failed perhaps due to plugin dependency issues
>
> java.lang.RuntimeException: unsupported Java version: 11
>
>at 
> org.jruby.RubyInstanceConfig.initGlobalJavaVersion(RubyInstanceConfig.java:1674)
>
>at org.jruby.RubyInstanceConfig.(RubyInstanceConfig.java:1387)
>
> Caused: java.lang.ExceptionInInitializerError
>
>at 
> org.jruby.embed.internal.AbstractLocalContextProvider.(AbstractLocalContextProvider.java:42)
>
>at 
> org.jruby.embed.internal.SingleThreadLocalContextProvider.(SingleThreadLocalContextProvider.java:43)
>
>at 
> org.jruby.embed.ScriptingContainer.getProviderInstance(ScriptingContainer.java:242)
>
>at 
> org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:226)
>
>at 
> org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:192)
>
>at org.kohsuke.stapler.jelly.jruby.JRubyFacet.(JRubyFacet.java:65)
>
>at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)
>
>at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)
>
>at 
> hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:417)
>
>at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:406)
>
> Caused: java.io.IOException: Failed to initialize
>
>at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:409)
>
>at hudson.PluginManager$2$1$1.run(PluginManager.java:549)
>
>at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$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
>>
>> openjdk version "11.0.16" 2022-07-19 LTS
>>
>> OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
>> 11.0.16+8-LTS)
>>
>> OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
>> 11.0.16+8-LTS, mixed mode, sharing)
>>
>> On 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)
>>>
>>> On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com 
>>> wrote:
>>>
>>>> Also I see this in the logs, and looking for info on 
>>>> Jenkins.getInstanceOrNull provides nothing.
>>>>
>>>> 2022-12-07 20:24:26.772+ [id=190]WARNING   
>>>>  o.e.jetty.server.HttpChannel#handleException: /login
>>>>
>>>> java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
>>>> documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
>>>>
>>>>at jenkins.model.Jenkins.get(Jenkins.java:813)
>>>>
>>>>at 
>>>> org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)
>>>>
>>>>at 
>>>> hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(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:
>>>>
>>>>> 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 

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
More logs, this is the first log I see. Again I renamed the 
$HOME_JENKINS/plugins dir.

2022-12-07 20:46:03.252+ [id=33]INFO   
 jenkins.InitReactorRunner$1#onAttained: Listed all plugins

2022-12-07 20:46:09.644+ [id=30]INFO   
 ruby.RubyRuntimePlugin#start: Injecting JRuby into XStream

2022-12-07 20:46:09.715+ [id=30]WARNING   
 jenkins.model.Jenkins$5#runTask: Loading plugin ruby-runtime v0.12 
(ruby-runtime) failed perhaps due to plugin dependency issues

java.lang.RuntimeException: unsupported Java version: 11

   at 
org.jruby.RubyInstanceConfig.initGlobalJavaVersion(RubyInstanceConfig.java:1674)

   at org.jruby.RubyInstanceConfig.(RubyInstanceConfig.java:1387)

Caused: java.lang.ExceptionInInitializerError

   at 
org.jruby.embed.internal.AbstractLocalContextProvider.(AbstractLocalContextProvider.java:42)

   at 
org.jruby.embed.internal.SingleThreadLocalContextProvider.(SingleThreadLocalContextProvider.java:43)

   at 
org.jruby.embed.ScriptingContainer.getProviderInstance(ScriptingContainer.java:242)

   at org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:226)

   at org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:192)

   at org.kohsuke.stapler.jelly.jruby.JRubyFacet.(JRubyFacet.java:65)

   at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)

   at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)

   at 
hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:417)

   at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:406)

Caused: java.io.IOException: Failed to initialize

   at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:409)

   at hudson.PluginManager$2$1$1.run(PluginManager.java:549)

   at 
org.jvnet.hudson.reactor.TaskGraphBuilder$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
>
> openjdk version "11.0.16" 2022-07-19 LTS
>
> OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
> 11.0.16+8-LTS)
>
> OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
> 11.0.16+8-LTS, mixed mode, sharing)
>
> On 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)
>>
>> On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com 
>> wrote:
>>
>>> Also I see this in the logs, and looking for info on 
>>> Jenkins.getInstanceOrNull provides nothing.
>>>
>>> 2022-12-07 20:24:26.772+ [id=190]WARNING   
>>>  o.e.jetty.server.HttpChannel#handleException: /login
>>>
>>> java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
>>> documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
>>>
>>>at jenkins.model.Jenkins.get(Jenkins.java:813)
>>>
>>>at 
>>> org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)
>>>
>>>at 
>>> hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(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:
>>>
>>>> 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 
>>>> $JENKINS_HOME/plugins.txt files in case there are incompatible plugins 
>>>> which I expect from a huge version gap.
>>>>
>>>> Any clues?
>>>>
>>>> java.lang.NoClassDefFoundError: 
>>>> org/jruby/javasupport/proxy/InternalJavaProxyat 
>>>> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
>>>> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
>>>>at 
>>>> com.t

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
I updated Java to no avail

$ java -version

openjdk version "11.0.16" 2022-07-19 LTS

OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
11.0.16+8-LTS)

OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
11.0.16+8-LTS, mixed mode, sharing)

On 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)
>
> On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com wrote:
>
>> Also I see this in the logs, and looking for info on 
>> Jenkins.getInstanceOrNull provides nothing.
>>
>> 2022-12-07 20:24:26.772+ [id=190]WARNING   
>>  o.e.jetty.server.HttpChannel#handleException: /login
>>
>> java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
>> documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
>>
>>at jenkins.model.Jenkins.get(Jenkins.java:813)
>>
>>at 
>> org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)
>>
>>at 
>> hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(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:
>>
>>> 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 $JENKINS_HOME/plugins.txt 
>>> files in case there are incompatible plugins which I expect from a huge 
>>> version gap.
>>>
>>> Any clues?
>>>
>>> java.lang.NoClassDefFoundError: 
>>> org/jruby/javasupport/proxy/InternalJavaProxyat 
>>> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
>>> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
>>>at 
>>> com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
>>>  
>>>at 
>>> com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) 
>>>at 
>>> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
>>>  
>>>at com.thoughtworks.xstream.XStream.marshal(XStream.java:1266)at 
>>> com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
>>> com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
>>> hudson.XmlFile.write(XmlFile.java:213)at 
>>> jenkins.model.Jenkins.save(Jenkins.java:3547)at 
>>> jenkins.model.Jenkins.(Jenkins.java:1007)at 
>>> hudson.model.Hudson.(Hudson.java:86)at 
>>> hudson.model.Hudson.(Hudson.java:82)at 
>>> hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
>>> hudson.util.HudsonFailedToLoadat 
>>> hudson.WebAppMain$3.run(WebAppMain.java:261) 
>>>
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/020a3eee-fadb-4543-8f37-76861124e264n%40googlegroups.com.


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 looking for info on 
> Jenkins.getInstanceOrNull provides nothing.
>
> 2022-12-07 20:24:26.772+ [id=190]WARNING   
>  o.e.jetty.server.HttpChannel#handleException: /login
>
> java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
> documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
>
>at jenkins.model.Jenkins.get(Jenkins.java:813)
>
>at 
> org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)
>
>at 
> hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(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:
>
>> 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 $JENKINS_HOME/plugins.txt 
>> files in case there are incompatible plugins which I expect from a huge 
>> version gap.
>>
>> Any clues?
>>
>> java.lang.NoClassDefFoundError: 
>> org/jruby/javasupport/proxy/InternalJavaProxyat 
>> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
>> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
>>at 
>> com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
>>  
>>at 
>> com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) 
>>at 
>> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
>>  
>>at com.thoughtworks.xstream.XStream.marshal(XStream.java:1266)at 
>> com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
>> com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
>> hudson.XmlFile.write(XmlFile.java:213)at 
>> jenkins.model.Jenkins.save(Jenkins.java:3547)at 
>> jenkins.model.Jenkins.(Jenkins.java:1007)at 
>> hudson.model.Hudson.(Hudson.java:86)at 
>> hudson.model.Hudson.(Hudson.java:82)at 
>> hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
>> hudson.util.HudsonFailedToLoadat 
>> hudson.WebAppMain$3.run(WebAppMain.java:261) 
>>
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8957ba57-92fd-4302-a6ed-1d02db4efee8n%40googlegroups.com.


Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
Also I see this in the logs, and looking for info on 
Jenkins.getInstanceOrNull provides nothing.

2022-12-07 20:24:26.772+ [id=190]WARNING   
 o.e.jetty.server.HttpChannel#handleException: /login

java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.

   at jenkins.model.Jenkins.get(Jenkins.java:813)

   at 
org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)

   at 
hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(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:

> 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 $JENKINS_HOME/plugins.txt 
> files in case there are incompatible plugins which I expect from a huge 
> version gap.
>
> Any clues?
>
> java.lang.NoClassDefFoundError: 
> org/jruby/javasupport/proxy/InternalJavaProxyat 
> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
>at 
> com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
>  
>at 
> com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) 
>at 
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
>  
>at com.thoughtworks.xstream.XStream.marshal(XStream.java:1266)at 
> com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
> com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
> hudson.XmlFile.write(XmlFile.java:213)at 
> jenkins.model.Jenkins.save(Jenkins.java:3547)at 
> jenkins.model.Jenkins.(Jenkins.java:1007)at 
> hudson.model.Hudson.(Hudson.java:86)at 
> hudson.model.Hudson.(Hudson.java:82)at 
> hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
> hudson.util.HudsonFailedToLoadat 
> hudson.WebAppMain$3.run(WebAppMain.java:261) 
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e0c41d32-638a-4c52-ad0a-7736616c2e24n%40googlegroups.com.


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 $JENKINS_HOME/plugins.txt 
files in case there are incompatible plugins which I expect from a huge 
version gap.

Any clues?

java.lang.NoClassDefFoundError: 
org/jruby/javasupport/proxy/InternalJavaProxyat 
org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
   at 
com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
 
   at 
com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) 
   at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
 
   at com.thoughtworks.xstream.XStream.marshal(XStream.java:1266)at 
com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
hudson.XmlFile.write(XmlFile.java:213)at 
jenkins.model.Jenkins.save(Jenkins.java:3547)at 
jenkins.model.Jenkins.(Jenkins.java:1007)at 
hudson.model.Hudson.(Hudson.java:86)at 
hudson.model.Hudson.(Hudson.java:82)at 
hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
hudson.util.HudsonFailedToLoadat 
hudson.WebAppMain$3.run(WebAppMain.java:261) 

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6514a893-549a-49f5-8228-eaf91fbdce0bn%40googlegroups.com.


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 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
> - Triggered from another job
> - Etc.
>
> How can I correct this?
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/27d32926-438b-4098-a563-3a1afb0a40fen%40googlegroups.com.


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
- Triggered from another job
- Etc.

How can I correct this?

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/60553c9c-d9d0-465b-8c12-9b2d1dddn%40googlegroups.com.


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 the same problem?
https://groups.google.com/g/jenkinsci-users/c/mjYjarXhynU/m/zjrIEuS7AQAJ

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2bcc14c1-bc59-45cb-8e28-41290cbef8a6n%40googlegroups.com.


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 
"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/dafdff03-c18c-4b72-b1c9-dc71d442b120n%40googlegroups.com.


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,
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6d5b0766-9885-4c23-a617-20de024b34f0n%40googlegroups.com.


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 the successful build numbers. The 
versions shown in the second choice will of course be different depending 
on the first choice.

Is this possible to do? If so how?

-- 
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/505c88c0-1aa1-4103-b46c-43f55be51badn%40googlegroups.com.


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 this to no avail.

String someKeyValuePair = "junk"
withFolderProperties {
  someKeyValuePair = env.SOME_KEY_VALUE_PAIR
}
println someKeyValuePair

and it just prints "junk," that is, it never picks up the folder property I 
set up. Any clues?

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d752502a-0b30-435c-8965-6681a7c236bdn%40googlegroups.com.


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. 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 
> job's configuration page I have
> BUILD_ENV=sandbox 
>
> How can I write pipeline code that does
> println "$env.${env.BUILD_ENV}_deployed" 
>
> If I write it like in the above println, I get
> org.jenkinsci.plugins.wo...@336841dd.sandbox_deployed 
>
> But I really want this
> println "env.sandbox_deployed" 
>
> which prints out the correct value of the sandbox_deployed variable. 
> What's the correct syntax?
>
>

-- 
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/d4057381-3305-49c3-b198-521073ba3c50n%40googlegroups.com.


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 
job's configuration page I have
BUILD_ENV=sandbox 

How can I write pipeline code that does
println "$env.${env.BUILD_ENV}_deployed" 

If I write it like in the above println, I get
org.jenkinsci.plugins.workflow.cps.EnvActionImpl@336841dd.sandbox_deployed 

But I really want this
println "env.sandbox_deployed" 

which prints out the correct value of the sandbox_deployed variable. What's 
the correct syntax?

-- 
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/85f59145-f7c3-4eb9-9b23-09684bcec783n%40googlegroups.com.


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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4ead4012-8574-4644-8ea9-b282a51ba3can%40googlegroups.com.


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 
>> manager that are not installable.  I’m trying to understand if at least one 
>> of them is not compatible with LTS and requires a higher version of 
>> Jenkins, or if there’s some interdependency that makes the list depend on 
>> itself…
>>
>>
> A Jenkins plugin release declares the minimum Jenkins version that it 
> supports.  The Jenkins versions after 2.263 (2.264 through 2.276 and 
> beyond) include the changes described in "Major changes in weekly releases 
> ".  
> Supporting those major changes in the plugins you listed has required that 
> the plugins increase their minimum Jenkins version to a version 2.264 or 
> higher.
>
> Those plugin versions are listed as unavailable because they won't run in 
> Jenkins 2.263.
>
> The most recent weekly releases are able to install those plugins.  Users 
> of the weekly releases are leading the effort to check that the major 
> changes are ready for the March 2021 Jenkins long term support release.
>
> If there is something critical that you need in those newer plugin 
> releases, you'll need to switch from the Jenkins LTS to the Jenkins weekly 
> release.  In general, those plugin releases were created so that they could 
> support the changes in weekly releases after 2.263.
>
> If there isn't something critical that you need in those newer plugin 
> releases, you can remain with Jenkins LTS and remain with the releases that 
> support Jenkins 2.263.x.
>
> Mark Waite
>  
>
>>  
>>
>> So far I have a list of the following that can’t be updated (listed as 
>> UNAVAILABLE):
>>
>> Branch API 2.6.3
>>
>> Environment Injector 2.4.0
>>
>> Favorite 2.3.3
>>
>> LDAP 2.3
>>
>> Maven Integration 3.9
>>
>> Parameterized Trigger 2.40
>>
>> Token Macro 2.14
>>
>>  
>>
>> Is there something I’m missing, or must I just wait for LTS to catch up 
>> somehow?  Thanks in advance for your response.
>>
>> -Alan
>>
>> -- 
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/DM6PR18MB3306BE46A355B1241E779EA6C5A21%40DM6PR18MB3306.namprd18.prod.outlook.com
>>  
>> 
>> .
>>
>

-- 
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/fed1e6cd-5999-4a0a-85d9-b628cec87c3en%40googlegroups.com.


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 
> 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 -> Configure 
> Clouds -> Click Add New Cloud -> Choose Amazon EC2 fleet, and setup correct 
> AWS credentials and region, I do NOT see the EC2 spot fleet in the drop 
> down menu. Any pointers as to why?
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ad263548-5862-4996-9381-5470e41b3a13n%40googlegroups.com.


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 -> Configure 
Clouds -> Click Add New Cloud -> Choose Amazon EC2 fleet, and setup correct 
AWS credentials and region, I do NOT see the EC2 spot fleet in the drop 
down menu. Any pointers as to why?

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b10e7885-48fc-4d17-a960-32f20a13625fn%40googlegroups.com.


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 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` }}",
>
> "ssh_private_key" : "{{ env `SSH_PRIVATE_KEY` }}",
>
> "aws_ami_us_east_1" : "{{ env `AWS_BASE_AMI` }}",
>
> "jenkins_master_image_version" : "{{ env 
> `JENKINS_MASTER_IMAGE_VERSION` }}"
>
>   },
>
>   "builders" : [...],
>
>   "provisioners" : [...]
>
> }
>
> I invoke packer in a pipeline, like this
>
> stage("Create Jenkins AMI") { 
>
>   steps { 
>
> script { 
>
>   withCredentials([sshUserPrivateKey(credentialsId: "ec2-user-ssh", 
> keyFileVariable: "SSH_PRIVATE_KEY")]) { 
>
> dir("$env.WORKSPACE/deployment/jenkins/packer") { 
>
>   sh """ 
>
>  export AWS_BASE_AMI=`aws ec2 describe-images \ 
>
>--owners amazon \ 
>
>--filters 
> "Name=name,Values=amzn2-ami-hvm-2.0.*.?-x86_64-gp2" 
> "Name=state,Values=available" \ 
>
>--query "reverse(sort_by(Images, 
> ))[:1].ImageId" \ 
>
>--output text` \ 
>
>&& export 
> JENKINS_MASTER_IMAGE_VERSION=$env.JENKINS_VERSION \
>
>&& packer build jenkins-ami-master.json 
>
>   """ 
>
> } 
>
>   } 
>
> } 
>
>   } 
>
> } 
>
> Packer builds the temporary instance but fails to ssh to it, and hence 
> can't run my provisioners. what am i missing?
>
>
>

-- 
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/f15f1276-5f1b-4e29-b30b-98ce1740721cn%40googlegroups.com.


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` }}",

"ssh_private_key" : "{{ env `SSH_PRIVATE_KEY` }}",

"aws_ami_us_east_1" : "{{ env `AWS_BASE_AMI` }}",

"jenkins_master_image_version" : "{{ env `JENKINS_MASTER_IMAGE_VERSION` 
}}"

  },

  "builders" : [...],

  "provisioners" : [...]

}

I invoke packer in a pipeline, like this

stage("Create Jenkins AMI") { 

  steps { 

script { 

  withCredentials([sshUserPrivateKey(credentialsId: "ec2-user-ssh", 
keyFileVariable: "SSH_PRIVATE_KEY")]) { 

dir("$env.WORKSPACE/deployment/jenkins/packer") { 

  sh """ 

 export AWS_BASE_AMI=`aws ec2 describe-images \ 

   --owners amazon \ 

   --filters 
"Name=name,Values=amzn2-ami-hvm-2.0.*.?-x86_64-gp2" 
"Name=state,Values=available" \ 

   --query "reverse(sort_by(Images, 
))[:1].ImageId" \ 

   --output text` \ 

   && export 
JENKINS_MASTER_IMAGE_VERSION=$env.JENKINS_VERSION \

   && packer build jenkins-ami-master.json 

  """ 

} 

  } 

} 

  } 

} 

Packer builds the temporary instance but fails to ssh to it, and hence 
can't run my provisioners. what am i missing?


-- 
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/a6e8e440-5426-42e6-9ee5-53785b40fc6cn%40googlegroups.com.


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...@gmail.com wrote:

> 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 
> com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals in object 
> com.cloudbees.groovy.cps.impl.BlockScopeEnv@2fa84c51 in field 
> com.cloudbees.groovy.cps.impl.CallEnv.caller in object 
> com.cloudbees.groovy.cps.impl.FunctionCallEnv@f687179 in field 
> com.cloudbees.groovy.cps.Continuable.e in object 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable@41cd7240 in field 
> org.jenkinsci.plugins.workflow.cps.CpsThread.program in object 
> org.jenkinsci.plugins.workflow.cps.CpsThread@13c12346 in field 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.threads in object 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 in object 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 Caused: 
> java.io.NotSerializableException: hudson.PluginWrapper at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:926)
>  
> at 
> org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
>  
> at 
> org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
>  
> at 
> org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
>  
> at 
> org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
>  
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) at 
> java.util.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:973)
>  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  
> at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
>  
> at 
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:781)
>  
> at 
> org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
>  
> at 
> org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
>  
> at 
> org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
>  
> at 
> org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
>  
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) at 
> java.util.HashMap.internalWriteEntries(HashMap.java:1793) at 
> java.util.HashMap.writeObject(HashMap.java:1363) at 
> sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  
> at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
>  
> at 
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMar

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 
com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals in object 
com.cloudbees.groovy.cps.impl.BlockScopeEnv@2fa84c51 in field 
com.cloudbees.groovy.cps.impl.CallEnv.caller in object 
com.cloudbees.groovy.cps.impl.FunctionCallEnv@f687179 in field 
com.cloudbees.groovy.cps.Continuable.e in object 
org.jenkinsci.plugins.workflow.cps.SandboxContinuable@41cd7240 in field 
org.jenkinsci.plugins.workflow.cps.CpsThread.program in object 
org.jenkinsci.plugins.workflow.cps.CpsThread@13c12346 in field 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.threads in object 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 in object 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 Caused: 
java.io.NotSerializableException: hudson.PluginWrapper at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:926)
 
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
 
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
 
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
 
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
 
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) at 
java.util.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:973)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:498) at 
org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
 
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:781)
 
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
 
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
 
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
 
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
 
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) at 
java.util.HashMap.internalWriteEntries(HashMap.java:1793) at 
java.util.HashMap.writeObject(HashMap.java:1363) at 
sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:498) at 
org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
 
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 

Re: Script to get Jenkins CentOS versions?

2020-11-27 Thread zil...@gmail.com
Thanks again. I get the following even though I give it my Docker Hub 
creds, which i'm able to use to log in.

{"errors":[{"code":"UNAUTHORIZED","message":"authentication 
required","detail":[{"Type":"repository","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 schrieb am Donnerstag, 26. November 2020 um 17:07:46 
> UTC+1:
>
>> I read the page you linked, and the part regarding tags pagination. I 
>> infer from the page that I should be able to get a list of tags with the 
>> following.
>>
>> https://hub.docker.com/v2/repositories/library/jenkins/tags/list
>>
>> But if I paste the URL on my browser, I get
>>
>> "txnid": "REPOSREQ-29168001-2818-486d-9af5-45c455b6155e",
>>   "message": "tag 'list' not found",
>>   "errinfo": {
>> "api_call_docker_id": "",
>> "api_call_name": "GetRepositoryTag",
>> "api_call_start": "2020-11-26T16: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 AM UTC-5 zil...@gmail.com 
>> wrote:
>>
>>> Yeah that makes sense. Thanks.
>>>
>>> Chris
>>>
>>> On Thursday, November 26, 2020 at 2:50:04 AM UTC-5 ice...@googlemail.com 
>>> wrote:
>>>
>>>> The problem  probably is that the centos image is not in the first  30 
>>>> results . You would need to get the next page(s) until you find a centos 
>>>> image.
>>>> 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:
>>>>
>>>>> That's what I essentially have already. Just need the correct 
>>>>> docker_image_tags_url value, and that post didn't tell me.
>>>>>
>>>>> On Wednesday, November 25, 2020 at 10:22:41 AM UTC-5 slide wrote:
>>>>>
>>>>>> This might get you started: 
>>>>>> https://gist.github.com/kizbitz/e59f95f7557b4bbb8bf2
>>>>>>
>>>>>>
>>>>>>
>>>>>> 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.
>>>>>>>
>>>>>>>
>>>>>>> https://hub.docker.com/r/jenkins/jenkins/tags?page_size=20=1=last_updated
>>>>>>> .
>>>>>>>
>>>>>>> On Wednesday, November 25, 2020 at 9:40:16 AM UTC-5 zil...@gmail.com 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I want to use the Groovy script in this post 
>>>>>>>> <https://kublr.com/blog/advanced-jenkins-groovy-scripting-for-live-fetching-of-docker-images/>
>>>>>>>>  
>>>>>>>> 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 Dockerhub API response
>>>>>>>> import groovy.json.JsonSlurper
>>>>>>>> // Set the URL we want to read from, it is MySQL from official 
>>>>>>>> Library for this example, limited to 20 results only.
>>>>>>>> docker_image_tags_url = "
>>>>>>>> https://hub.docker.com/v2/repositories/library/jenkins/tags?page_size=30
>>>>>>>> "
>>>>>>>> try {
>>>>>>>> // Set requirements fo

Re: Script to get Jenkins CentOS versions?

2020-11-26 Thread zil...@gmail.com
I read the page you linked, and the part regarding tags pagination. I infer 
from the page that I should be able to get a list of tags with the 
following.

https://hub.docker.com/v2/repositories/library/jenkins/tags/list

But if I paste the URL on my browser, I get

"txnid": "REPOSREQ-29168001-2818-486d-9af5-45c455b6155e",
  "message": "tag 'list' not found",
  "errinfo": {
"api_call_docker_id": "",
"api_call_name": "GetRepositoryTag",
"api_call_start": "2020-11-26T16: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 AM UTC-5 zil...@gmail.com wrote:

> Yeah that makes sense. Thanks.
>
> Chris
>
> On Thursday, November 26, 2020 at 2:50:04 AM UTC-5 ice...@googlemail.com 
> wrote:
>
>> The problem  probably is that the centos image is not in the first  30 
>> results . You would need to get the next page(s) until you find a centos 
>> image.
>> 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:
>>
>>> That's what I essentially have already. Just need the correct 
>>> docker_image_tags_url value, and that post didn't tell me.
>>>
>>> On Wednesday, November 25, 2020 at 10:22:41 AM UTC-5 slide wrote:
>>>
>>>> This might get you started: 
>>>> https://gist.github.com/kizbitz/e59f95f7557b4bbb8bf2
>>>>
>>>>
>>>>
>>>> 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.
>>>>>
>>>>>
>>>>> https://hub.docker.com/r/jenkins/jenkins/tags?page_size=20=1=last_updated
>>>>> .
>>>>>
>>>>> On Wednesday, November 25, 2020 at 9:40:16 AM UTC-5 zil...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> I want to use the Groovy script in this post 
>>>>>> <https://kublr.com/blog/advanced-jenkins-groovy-scripting-for-live-fetching-of-docker-images/>
>>>>>>  
>>>>>> 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 Dockerhub API response
>>>>>> import groovy.json.JsonSlurper
>>>>>> // Set the URL we want to read from, it is MySQL from official 
>>>>>> Library for this example, limited to 20 results only.
>>>>>> docker_image_tags_url = "
>>>>>> https://hub.docker.com/v2/repositories/library/jenkins/tags?page_size=30
>>>>>> "
>>>>>> try {
>>>>>> // Set requirements for the HTTP GET request, you can add 
>>>>>> Content-Type headers and so on...
>>>>>> def http_client = new URL(docker_image_tags_url).openConnection() 
>>>>>> as HttpURLConnection
>>>>>> http_client.setRequestMethod('GET')
>>>>>> // Run the HTTP request
>>>>>> http_client.connect()
>>>>>> // Prepare a variable where we save parsed JSON as a HashMap, 
>>>>>> it's good for our use case, as we just need the 'name' of each tag.
>>>>>> def dockerhub_response = [:]
>>>>>> // Check if we got HTTP 200, otherwise exit
>>>>>> if (http_client.responseCode == 200) {
>>>>>> dockerhub_response = new 
>>>>>> JsonSlurper().parseText(http_client.inputStream.getText('UTF-8'))
>>>>>> } else {
>>>>>> println("HTTP response error")
>>>>>> System.exit(0)
>>>>>> }
>>>>>> // Prepare a List to collect the tag names into
>>>>>> def image_tag_list = []
>>>>>> // Iterat

Re: Script to get Jenkins CentOS versions?

2020-11-26 Thread zil...@gmail.com
Yeah that makes sense. Thanks.

Chris

On Thursday, November 26, 2020 at 2:50:04 AM UTC-5 ice...@googlemail.com 
wrote:

> The problem  probably is that the centos image is not in the first  30 
> results . You would need to get the next page(s) until you find a centos 
> image.
> 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:
>
>> That's what I essentially have already. Just need the correct 
>> docker_image_tags_url value, and that post didn't tell me.
>>
>> On Wednesday, November 25, 2020 at 10:22:41 AM UTC-5 slide wrote:
>>
>>> This might get you started: 
>>> https://gist.github.com/kizbitz/e59f95f7557b4bbb8bf2
>>>
>>>
>>>
>>> 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.
>>>>
>>>>
>>>> https://hub.docker.com/r/jenkins/jenkins/tags?page_size=20=1=last_updated
>>>> .
>>>>
>>>> On Wednesday, November 25, 2020 at 9:40:16 AM UTC-5 zil...@gmail.com 
>>>> wrote:
>>>>
>>>>> I want to use the Groovy script in this post 
>>>>> <https://kublr.com/blog/advanced-jenkins-groovy-scripting-for-live-fetching-of-docker-images/>
>>>>>  
>>>>> 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 Dockerhub API response
>>>>> import groovy.json.JsonSlurper
>>>>> // Set the URL we want to read from, it is MySQL from official Library 
>>>>> for this example, limited to 20 results only.
>>>>> docker_image_tags_url = "
>>>>> https://hub.docker.com/v2/repositories/library/jenkins/tags?page_size=30
>>>>> "
>>>>> try {
>>>>> // Set requirements for the HTTP GET request, you can add 
>>>>> Content-Type headers and so on...
>>>>> def http_client = new URL(docker_image_tags_url).openConnection() 
>>>>> as HttpURLConnection
>>>>> http_client.setRequestMethod('GET')
>>>>> // Run the HTTP request
>>>>> http_client.connect()
>>>>> // Prepare a variable where we save parsed JSON as a HashMap, it's 
>>>>> good for our use case, as we just need the 'name' of each tag.
>>>>> def dockerhub_response = [:]
>>>>> // Check if we got HTTP 200, otherwise exit
>>>>> if (http_client.responseCode == 200) {
>>>>> dockerhub_response = new 
>>>>> JsonSlurper().parseText(http_client.inputStream.getText('UTF-8'))
>>>>> } else {
>>>>> println("HTTP response error")
>>>>> System.exit(0)
>>>>> }
>>>>> // Prepare a List to collect the tag names into
>>>>> def image_tag_list = []
>>>>> // Iterate the HashMap of all Tags and grab only their "names" 
>>>>> into our List
>>>>> dockerhub_response.results.each { tag_metadata ->
>>>>> image_tag_list.add(tag_metadata.name)
>>>>> }
>>>>> // The returned value MUST be a Groovy type of List or a related 
>>>>> type (inherited from List)
>>>>> // It is necessary for the Active Choice plugin to display results 
>>>>> in a combo-box
>>>>> return image_tag_list.sort()
>>>>> } catch (Exception e) {
>>>>>  // handle exceptions like timeout, connection errors, etc.
>>>>>  println(e)
>>>>> }
>>>>>
>>>>> However, it just returns Alpine versions. How can I get the CentOS 
>>>>> versions?
>>>>>
>>>>> 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 jenkinsci-use...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/365c1f68-145b-499d-a808-bb8b96351386n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/365c1f68-145b-499d-a808-bb8b96351386n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>
>>>
>>> -- 
>>> Website: http://earl-of-code.com
>>>
>>

-- 
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/9b0c3b3c-0fc1-4da4-99ca-5ab657d4d9d4n%40googlegroups.com.


Re: Script to get Jenkins CentOS versions?

2020-11-25 Thread zil...@gmail.com
That's what I essentially have already. Just need the correct 
docker_image_tags_url value, and that post didn't tell me.

On Wednesday, November 25, 2020 at 10:22:41 AM UTC-5 slide wrote:

> This might get you started: 
> https://gist.github.com/kizbitz/e59f95f7557b4bbb8bf2
>
>
>
> 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.
>>
>>
>> https://hub.docker.com/r/jenkins/jenkins/tags?page_size=20=1=last_updated
>> .
>>
>> On Wednesday, November 25, 2020 at 9:40:16 AM UTC-5 zil...@gmail.com 
>> wrote:
>>
>>> I want to use the Groovy script in this post 
>>> <https://kublr.com/blog/advanced-jenkins-groovy-scripting-for-live-fetching-of-docker-images/>
>>>  
>>> 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 Dockerhub API response
>>> import groovy.json.JsonSlurper
>>> // Set the URL we want to read from, it is MySQL from official Library 
>>> for this example, limited to 20 results only.
>>> docker_image_tags_url = "
>>> https://hub.docker.com/v2/repositories/library/jenkins/tags?page_size=30
>>> "
>>> try {
>>> // Set requirements for the HTTP GET request, you can add 
>>> Content-Type headers and so on...
>>> def http_client = new URL(docker_image_tags_url).openConnection() as 
>>> HttpURLConnection
>>> http_client.setRequestMethod('GET')
>>> // Run the HTTP request
>>> http_client.connect()
>>> // Prepare a variable where we save parsed JSON as a HashMap, it's 
>>> good for our use case, as we just need the 'name' of each tag.
>>> def dockerhub_response = [:]
>>> // Check if we got HTTP 200, otherwise exit
>>> if (http_client.responseCode == 200) {
>>> dockerhub_response = new 
>>> JsonSlurper().parseText(http_client.inputStream.getText('UTF-8'))
>>> } else {
>>> println("HTTP response error")
>>> System.exit(0)
>>> }
>>> // Prepare a List to collect the tag names into
>>> def image_tag_list = []
>>> // Iterate the HashMap of all Tags and grab only their "names" into 
>>> our List
>>> dockerhub_response.results.each { tag_metadata ->
>>> image_tag_list.add(tag_metadata.name)
>>> }
>>> // The returned value MUST be a Groovy type of List or a related 
>>> type (inherited from List)
>>> // It is necessary for the Active Choice plugin to display results 
>>> in a combo-box
>>> return image_tag_list.sort()
>>> } catch (Exception e) {
>>>  // handle exceptions like timeout, connection errors, etc.
>>>  println(e)
>>> }
>>>
>>> However, it just returns Alpine versions. How can I get the CentOS 
>>> versions?
>>>
>>> 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 jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/365c1f68-145b-499d-a808-bb8b96351386n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/365c1f68-145b-499d-a808-bb8b96351386n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/052d273d-4ad7-4379-b5a3-98e498d10b58n%40googlegroups.com.


Re: Error while trying to run "source" command

2020-11-25 Thread zil...@gmail.com
I don't know what your script does, but a war file expects files in certain 
directories. Put a pwd statement right before you run the script to ensure 
it's where you expect it to run. If not cd to that directory. Example

$ pwd
$ cd $WORKSPACE
$ sudo source "$HOME/.sdkman/bin/sdkman-init.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 "$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 
>>> start using Grails commands form build the War, I have to set the source of 
>>> the Grails Commands. I have to do:
>>>
>>> $ source "$HOME/.sdkman/bin/sdkman-init.sh"
>>>
>>> If I run this as "root" or even "jenkins" user, it work perfectely but 
>>> on the Job I set it in a "Shell" and I got the following error.
>>>
>>> Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/Build 
>>> and Deploy Integro Cloud [Build and Deploy Integro Cloud] $ /usr/local/bin 
>>> -xe /tmp/jenkins762672155125796765.sh FATAL: command execution failed 
>>> java.io.IOException: error=13, Permission denied at 
>>> java.lang.UNIXProcess.forkAndExec(Native Method) at 
>>> java.lang.UNIXProcess.(UNIXProcess.java:247) at 
>>> java.lang.ProcessImpl.start(ProcessImpl.java:134) at 
>>> java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) Caused: 
>>> java.io.IOException: Cannot run program "/usr/local/bin" (in directory 
>>> "/var/lib/jenkins/workspace/Build and Deploy Integro Cloud"): error=13, 
>>> Permission denied at 
>>> java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at 
>>> hudson.Proc$LocalProc.(Proc.java:250) at 
>>> hudson.Proc$LocalProc.(Proc.java:219) at 
>>> hudson.Launcher$LocalLauncher.launch(Launcher.java:937) at 
>>> hudson.Launcher$ProcStarter.start(Launcher.java:455) at 
>>> hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109) at 
>>> hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) at 
>>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at 
>>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
>>>  
>>> at hudson.model.Build$BuildExecution.build(Build.java:206) at 
>>> hudson.model.Build$BuildExecution.doRun(Build.java:163) at 
>>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
>>>  
>>> at hudson.model.Run.execute(Run.java:1853) at 
>>> hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at 
>>> hudson.model.ResourceController.execute(ResourceController.java:97) at 
>>> hudson.model.Executor.run(Executor.java:427) Build step 'Execute shell' 
>>> marked build as failure Finished: FAILURE
>>>
>>> Please any help will be well received.
>>>
>>> Greetings,
>>>
>>> Eng. Jibsan
>>>
>> -- 
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/a1d32df4-bca2-4c52-aa65-631d53e8347cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/a1d32df4-bca2-4c52-aa65-631d53e8347cn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/09ae1d68-5b0e-4adc-8e46-f52dfb403e3cn%40googlegroups.com.


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 
> start using Grails commands form build the War, I have to set the source of 
> the Grails Commands. I have to do:
>
> $ source "$HOME/.sdkman/bin/sdkman-init.sh"
>
> If I run this as "root" or even "jenkins" user, it work perfectely but on 
> the Job I set it in a "Shell" and I got the following error.
>
> Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/Build 
> and Deploy Integro Cloud [Build and Deploy Integro Cloud] $ /usr/local/bin 
> -xe /tmp/jenkins762672155125796765.sh FATAL: command execution failed 
> java.io.IOException: error=13, Permission denied at 
> java.lang.UNIXProcess.forkAndExec(Native Method) at 
> java.lang.UNIXProcess.(UNIXProcess.java:247) at 
> java.lang.ProcessImpl.start(ProcessImpl.java:134) at 
> java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) Caused: 
> java.io.IOException: Cannot run program "/usr/local/bin" (in directory 
> "/var/lib/jenkins/workspace/Build and Deploy Integro Cloud"): error=13, 
> Permission denied at 
> java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at 
> hudson.Proc$LocalProc.(Proc.java:250) at 
> hudson.Proc$LocalProc.(Proc.java:219) at 
> hudson.Launcher$LocalLauncher.launch(Launcher.java:937) at 
> hudson.Launcher$ProcStarter.start(Launcher.java:455) at 
> hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109) at 
> hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) at 
> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
>  
> at hudson.model.Build$BuildExecution.build(Build.java:206) at 
> hudson.model.Build$BuildExecution.doRun(Build.java:163) at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 
> at hudson.model.Run.execute(Run.java:1853) at 
> hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at 
> hudson.model.ResourceController.execute(ResourceController.java:97) at 
> hudson.model.Executor.run(Executor.java:427) Build step 'Execute shell' 
> marked build as failure Finished: FAILURE
>
> Please any help will be well received.
>
> Greetings,
>
> Eng. Jibsan
>

-- 
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/a1d32df4-bca2-4c52-aa65-631d53e8347cn%40googlegroups.com.


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 Dockerhub API response
import groovy.json.JsonSlurper
// Set the URL we want to read from, it is MySQL from official Library for 
this example, limited to 20 results only.
docker_image_tags_url = 
"https://hub.docker.com/v2/repositories/library/jenkins/tags?page_size=30;
try {
// Set requirements for the HTTP GET request, you can add Content-Type 
headers and so on...
def http_client = new URL(docker_image_tags_url).openConnection() as 
HttpURLConnection
http_client.setRequestMethod('GET')
// Run the HTTP request
http_client.connect()
// Prepare a variable where we save parsed JSON as a HashMap, it's good 
for our use case, as we just need the 'name' of each tag.
def dockerhub_response = [:]
// Check if we got HTTP 200, otherwise exit
if (http_client.responseCode == 200) {
dockerhub_response = new 
JsonSlurper().parseText(http_client.inputStream.getText('UTF-8'))
} else {
println("HTTP response error")
System.exit(0)
}
// Prepare a List to collect the tag names into
def image_tag_list = []
// Iterate the HashMap of all Tags and grab only their "names" into our 
List
dockerhub_response.results.each { tag_metadata ->
image_tag_list.add(tag_metadata.name)
}
// The returned value MUST be a Groovy type of List or a related type 
(inherited from List)
// It is necessary for the Active Choice plugin to display results in a 
combo-box
return image_tag_list.sort()
} catch (Exception e) {
 // handle exceptions like timeout, connection errors, etc.
 println(e)
}

However, it just returns Alpine versions. How can I get the CentOS versions?

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41a3985e-8a7a-4efc-9f38-c0664fed9e8dn%40googlegroups.com.


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 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 
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
>>  
>> at 
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
>>  
>> at 
>> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3061)
>>  
>> at java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629) at 
>> java.net.URLConnection.getContentLengthLong(URLConnection.java:501) at 
>> java.net.URLConnection.getContentLength(URLConnection.java:485) at 
>> sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:412)
>>  
>> at 
>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1264)
>>
>> -- 
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/309d5dcf-6df4-48d1-8849-e947ea52e54dn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/309d5dcf-6df4-48d1-8849-e947ea52e54dn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/8f7fe9e7-74f5-45b4-bb37-ea77bb9e006bn%40googlegroups.com.


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 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
 
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
 
at 
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3061)
 
at java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629) at 
java.net.URLConnection.getContentLengthLong(URLConnection.java:501) at 
java.net.URLConnection.getContentLength(URLConnection.java:485) at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:412)
 
at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1264)

-- 
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/309d5dcf-6df4-48d1-8849-e947ea52e54dn%40googlegroups.com.


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:* Donnerstag, 12. November 2020 16:45
> *To:* Jenkins Users 
> *Subject:* Re: Where are jekins logs?
>
>  
>
> Thanks Reinhold, I get that. But WHERE are they? What file either on the 
> host or container?
>
> On Thursday, November 12, 2020 at 1:24:06 AM UTC-5 r.fuereder wrote:
>
> Hi Chris,
>
>  
>
> $ docker logs 
>
>  
>
>
> https://www.jenkins.io/doc/book/installing/docker/#accessing-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?
>
>  
>
> 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 are the logs? They're not in /var/jenkins_logs/* or var/log/jenkins.
>
>  
>
> 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 jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/87e9a5ea-6559-4d21-82a2-6b8ec9e808b3n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/87e9a5ea-6559-4d21-82a2-6b8ec9e808b3n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> -- 
> 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-use...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/6030dc37-6c30-437a-a93d-e594aad340adn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/6030dc37-6c30-437a-a93d-e594aad340adn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/a2f6cd06-4b7f-45d8-90df-578316cc73dan%40googlegroups.com.


Re: Where are jekins logs?

2020-11-12 Thread zil...@gmail.com
Thanks Reinhold, I get that. But WHERE are they? What file either on the 
host or container?

On Thursday, November 12, 2020 at 1:24:06 AM UTC-5 r.fuereder wrote:

> Hi Chris,
>
>  
>
> $ docker logs 
>
>  
>
>
> https://www.jenkins.io/doc/book/installing/docker/#accessing-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?
>
>  
>
> 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 are the logs? They're not in /var/jenkins_logs/* or var/log/jenkins.
>
>  
>
> 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 jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/87e9a5ea-6559-4d21-82a2-6b8ec9e808b3n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/87e9a5ea-6559-4d21-82a2-6b8ec9e808b3n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/6030dc37-6c30-437a-a93d-e594aad340adn%40googlegroups.com.


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 are the logs? They're not in /var/jenkins_logs/* or var/log/jenkins.

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/87e9a5ea-6559-4d21-82a2-6b8ec9e808b3n%40googlegroups.com.


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.com wrote:

> 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,
>
> selector: specific(depCheckJob.number.toString())
>
>   archiveArtifacts artifacts: "DependencyCheckerFailuresReport.yml",
>
>fingerprint: true
>
> }
>
> catch(err) {
>
>   foundDepCheckErrors = false
>
>   *println* "No dependency check failures!"
>
> }
>
>   }
>
>   if (foundDepCheckErrors) {
>
> currentBuild.result = 'FAILURE'
>
>   }
>
> and that functionality works fine, that is, I see on the JobA's console
>
> Copied 1 artifact from "JobB" build number 145 
> <https://ci.eng.ziftsolutions.com/job/Utilities/job/ECS-dependecy-checker/145/>
>  
> [Pipeline] archiveArtifacts 
> <https://ci.eng.ziftsolutions.com/view/Zift-Mono-ECS/job/production-check-dependencies/16/console#>
>  
> Archiving artifacts
>
> However, I don't see the artifact on JobA's page, on the part part that 
> shows "Last successful artifacts" section? If I remove the last if() 
> clause, I do see the artifact. However, I want the if() clause there, that 
> is, if JobA is able to copy this artifact from JobB, I want JobA to fail.
>
> Any ideas?
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0e7ada39-0eb3-42ef-8708-f9c7d4d1dc05n%40googlegroups.com.


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,

selector: specific(depCheckJob.number.toString())

  archiveArtifacts artifacts: "DependencyCheckerFailuresReport.yml",

   fingerprint: true

}

catch(err) {

  foundDepCheckErrors = false

  *println* "No dependency check failures!"

}

  }

  if (foundDepCheckErrors) {

currentBuild.result = 'FAILURE'

  }

and that functionality works fine, that is, I see on the JobA's console

Copied 1 artifact from "JobB" build number 145 
 
[Pipeline] archiveArtifacts 

 
Archiving artifacts

However, I don't see the artifact on JobA's page, on the part part that 
shows "Last successful artifacts" section? If I remove the last if() 
clause, I do see the artifact. However, I want the if() clause there, that 
is, if JobA is able to copy this artifact from JobB, I want JobA to fail.

Any ideas?

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5e3ab099-1f8d-4ba0-9dbf-d7df50e5c333n%40googlegroups.com.


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 into "Suspended" state? I can't find 
anything in the logs. What is this state, and how can I prevent the nodes 
from getting "suspended?"

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7c126563-69ab-4df2-aa50-ae6cb636d24bn%40googlegroups.com.


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 the namespace, use the full name for the class 
>> and try. For example,
>>
>> com.company.deployment.common.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 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
>>> /path/src/com/company/deployment/common.groovy
>>>
>>> For example
>>>
>>> common.groovy
>>> package com.company.deployment.common
>>> class MyClass {
>>> }
>>>
>>> script1.groovy
>>> package com.company.deployment
>>> import com.company.deployment.common
>>> MyClass mc = new MyClass()
>>>
>>> scrpt2.groovy
>>> package com.company.deployment
>>> import 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 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
>>>> /path/src/com/company/deployment/common.groovy
>>>>
>>>> For example
>>>>
>>>> common.groovy
>>>> package com.company.deployment.common
>>>> class MyClass {
>>>> }
>>>>
>>>> script1.groovy
>>>> package com.company.deployment
>>>> import com.company.deployment.common
>>>> MyClass mc = new MyClass()
>>>>
>>>> scrpt2.groovy
>>>> package com.company.deployment
>>>> import com.company.deployment.common
>>>> MyClass mc = new MyClass()
>>>>
>>>>
>>>> -- 
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/172ca56b-24a7-4e3a-bf37-1aa153793ddan%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/172ca56b-24a7-4e3a-bf37-1aa153793ddan%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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/8db848ac-d650-4deb-ad1a-b25b42b1f979n%40googlegroups.com.


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

2020-09-18 Thread zil...@gmail.com
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 the namespace, use the full name for the class 
> and try. For example,
>
> com.company.deployment.common.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 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
>> /path/src/com/company/deployment/common.groovy
>>
>> For example
>>
>> common.groovy
>> package com.company.deployment.common
>> class MyClass {
>> }
>>
>> script1.groovy
>> package com.company.deployment
>> import com.company.deployment.common
>> MyClass mc = new MyClass()
>>
>> scrpt2.groovy
>> package com.company.deployment
>> import 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 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
>>> /path/src/com/company/deployment/common.groovy
>>>
>>> For example
>>>
>>> common.groovy
>>> package com.company.deployment.common
>>> class MyClass {
>>> }
>>>
>>> script1.groovy
>>> package com.company.deployment
>>> import com.company.deployment.common
>>> MyClass mc = new MyClass()
>>>
>>> scrpt2.groovy
>>> package com.company.deployment
>>> import com.company.deployment.common
>>> MyClass mc = new MyClass()
>>>
>>>
>>> -- 
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/172ca56b-24a7-4e3a-bf37-1aa153793ddan%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/172ca56b-24a7-4e3a-bf37-1aa153793ddan%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/50afe979-005a-4efd-b719-b636f81a98dan%40googlegroups.com.


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 
> change was in certain submodules. 
>
> I think I know all the pieces to make this work -- I can write a tool that 
> could determine if a build was needed or not. What I don't know is what is 
> the best way to abort the pipeline. Do I set the currentBuild.status and 
> return? Or do I need to wrap all of the subsequent stages in an if?
>

-- 
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/b06772a2-9f7c-4007-a355-c4ec5c8033f0n%40googlegroups.com.


Re: 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
/path/src/com/company/deployment/common.groovy

For example

common.groovy
package com.company.deployment.common
class MyClass {
}

script1.groovy
package com.company.deployment
import com.company.deployment.common
MyClass mc = new MyClass()

scrpt2.groovy
package com.company.deployment
import 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 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
> /path/src/com/company/deployment/common.groovy
>
> For example
>
> common.groovy
> package com.company.deployment.common
> class MyClass {
> }
>
> script1.groovy
> package com.company.deployment
> import com.company.deployment.common
> MyClass mc = new MyClass()
>
> scrpt2.groovy
> package com.company.deployment
> import com.company.deployment.common
> MyClass mc = new MyClass()
>
>
>

-- 
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/172ca56b-24a7-4e3a-bf37-1aa153793ddan%40googlegroups.com.


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
/path/src/com/company/deployment/common.groovy

For example

common.groovy
package com.company.deployment.common
class MyClass {
}

script1.groovy
package com.company.deployment
import com.company.deployment.common
MyClass mc = new MyClass()

scrpt2.groovy
package com.company.deployment
import com.company.deployment.common
MyClass mc = new MyClass()


-- 
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/a4fee179-0f21-4827-bae4-8f6a457cf2den%40googlegroups.com.


Re: Get build number of spawned job?

2020-09-16 Thread zil...@gmail.com
Thanks Gianluca, again.

However, I found out it's much easier. I do this for each Pipeline1 and 
Pipeline2

def commonJOb = build job: "CommonPipeline",
  wait: true

copyArtifacts projectName: 'CommonPipeline',
  fingerprintArtifacts: true,
  filter: 'SomeFile.yml',
  selector: specific(commonJob.number.toString())


On Wednesday, September 16, 2020 at 4:54:30 PM UTC-4 Gianluca wrote:

> You can pass parameters to downstream jobs (Jenkins terminology for the 
> jobs started via "build job") with the BUILD_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 settembre 2020 alle 21:47:26 UTC+1 zil...@gmail.com 
> ha scritto:
>
>> IOW, both Pipeline1 and Pipeline2 jobs have this
>>
>> String buildNum = 
>> copyArtifacts projectName: 'CommonPipeline',
>>   fingerprintArtifacts: true,
>>   filter: 'SomeFile.yml'
>>   selector: specific(buildNumber)
>>
>> What do I put in the  ?
>>
>> thanks,
>> Chris
>> 
>> Reply all
>> Reply 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
>>>
>>> Scheduling project: CommonPipeline
>>> Starting building: Starting build CommonPipeline #100
>>>
>>> Now if I start another pipeline at the same time Pipeline1 is running
>>>
>>> Pipeline2:
>>> build job: "CommonPipeline",
>>>   wait: true
>>>
>>> You see this in the Jenkins console for Pipeline2
>>>
>>> Scheduling project: CommonPipeline
>>> Starting building: Starting build CommonPipeline #101
>>>
>>> In each Pipeline1 and Pipeline2 jobs, how can I get the corresponding 
>>> build numbers that they spawned for CommonPipeline? I'm asking because 
>>> CommonPipeline archives artifacts for Pipeline1 and Pipeline2, and I need 
>>> to get the artifact for their corresponding spawned CommonPipeline job#. Is 
>>> this possible?
>>>
>>> Hope that makes sense.
>>>
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9b1a0d4c-ec38-44b4-b4e4-f302fcc9e7e3n%40googlegroups.com.


Re: Get build number of spawned job?

2020-09-16 Thread zil...@gmail.com
IOW, both Pipeline1 and Pipeline2 jobs have this

String buildNum = 
copyArtifacts projectName: 'CommonPipeline',
  fingerprintArtifacts: true,
  filter: 'SomeFile.yml'
  selector: specific(buildNumber)

What do I put in the  ?

thanks,
Chris

Reply all
Reply 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
>
> Scheduling project: CommonPipeline
> Starting building: Starting build CommonPipeline #100
>
> Now if I start another pipeline at the same time Pipeline1 is running
>
> Pipeline2:
> build job: "CommonPipeline",
>   wait: true
>
> You see this in the Jenkins console for Pipeline2
>
> Scheduling project: CommonPipeline
> Starting building: Starting build CommonPipeline #101
>
> In each Pipeline1 and Pipeline2 jobs, how can I get the corresponding 
> build numbers that they spawned for CommonPipeline? I'm asking because 
> CommonPipeline archives artifacts for Pipeline1 and Pipeline2, and I need 
> to get the artifact for their corresponding spawned CommonPipeline job#. Is 
> this possible?
>
> Hope that makes sense.
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8b621d9c-10b0-4c67-b944-407ac742f827n%40googlegroups.com.


Re: Get build number of spawned job?

2020-09-16 Thread zil...@gmail.com
IOW, both Pipeline1 and Pipeline2 jobs have this

String buildNum = 
copyArtifacts projectName: 'Utilities/Playground/ECS-dependecy-checker',
  fingerprintArtifacts: true,
  filter: 'SomeFile.yml'
  selector: specific(buildNumber)

What do I put 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
>
> Scheduling project: CommonPipeline
> Starting building: Starting build CommonPipeline #100
>
> Now if I start another pipeline at the same time Pipeline1 is running
>
> Pipeline2:
> build job: "CommonPipeline",
>   wait: true
>
> You see this in the Jenkins console for Pipeline2
>
> Scheduling project: CommonPipeline
> Starting building: Starting build CommonPipeline #101
>
> In each Pipeline1 and Pipeline2 jobs, how can I get the corresponding 
> build numbers that they spawned for CommonPipeline? I'm asking because 
> CommonPipeline archives artifacts for Pipeline1 and Pipeline2, and I need 
> to get the artifact for their corresponding spawned CommonPipeline job#. Is 
> this possible?
>
> Hope that makes sense.
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/84ff3365-dc81-4cfe-bc78-53b220387e05n%40googlegroups.com.


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 is running

Pipeline2:
build job: "CommonPipeline",
  wait: true

You see this in the Jenkins console for Pipeline2

Scheduling project: CommonPipeline
Starting building: Starting build CommonPipeline #101

In each Pipeline1 and Pipeline2 jobs, how can I get the corresponding build 
numbers that they spawned for CommonPipeline? I'm asking because 
CommonPipeline archives artifacts for Pipeline1 and Pipeline2, and I need 
to get the artifact for their corresponding spawned CommonPipeline job#. Is 
this possible?

Hope that makes sense.

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/86259fca-8622-49ac-a35d-334a3ded2bb4n%40googlegroups.com.


Re: Share files between pipelines?

2020-09-16 Thread zil...@gmail.com
Thanks.

On Wednesday, September 16, 2020 at 11:55:53 AM UTC-4 Gianluca wrote:

> The error is very verbose.
> So ... or the project name is incorrect ... or the user running Pipeline2 
> doesn't permission to see "Pipeline1".
>
> You can check the project name by looking 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...@gmail.com 
> ha scritto:
>
>> 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 the Copy Artifacts plugin like so
>> Pipeline1:
>> node {'linux-0') { 
>>   stage("Create file") { 
>>  sh "echo \"hello world\" > hello.txt"
>>  archiveArtifacts artifact: 'hello.txt', fingerprint: true
>>}
>>  }
>>
>> Pipeline2:
>> node('linux-1') { 
>>   stage("Copy form first pipeline") { 
>> copyArtifacts projectName: 'Pipeline1',
>>   fingerprintArtifacts: true,
>>   filter: 'hello.txt' 
>>}
>> }
>>
>> and I get the following error for Pipeline2
>> ERROR: Unable to find project for artifact copy: Pipeline1 This may be 
>> due to incorrect project name or permission settings; see help for project 
>> name in job configuration. Finished: FAILURE
>>
>> What am I missing?
>>
>

-- 
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/52b6b978-b75f-413f-880f-16f06e9c81b8n%40googlegroups.com.


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 the Copy Artifacts plugin like so
Pipeline1:
node {'linux-0') { 
  stage("Create file") { 
 sh "echo \"hello world\" > hello.txt"
 archiveArtifacts artifact: 'hello.txt', fingerprint: true
   }
 }

Pipeline2:
node('linux-1') { 
  stage("Copy form first pipeline") { 
copyArtifacts projectName: 'Pipeline1',
  fingerprintArtifacts: true,
  filter: 'hello.txt' 
   }
}

and I get the following error for Pipeline2
ERROR: Unable to find project for artifact copy: Pipeline1 This may be due 
to incorrect project name or permission settings; see help for project name 
in job configuration. Finished: FAILURE

What am I missing?

-- 
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/5cca613a-0880-4260-a89a-4b0543ed00e5n%40googlegroups.com.


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

2020-09-15 Thread zil...@gmail.com
Gianluca,

Perfect. I'll look into this.

Thanks,
Chris

On Tuesday, September 15, 2020 at 11:26:48 AM UTC-4 Gianluca wrote:

> Yes, it explains.
>
> I would suggest to use intermediate artifacts / published files to use on 
> the "Deploy" job to know what to do instead of trigger that from "Build" 
> job.
> (I'm calling "Build" the one that runs on mid-day and "Deploy" the one 
> that runs at "H 21 * * 1")
>
> So, in my suggestion the flow would be that "Deploy" job will be triggered 
> by Jenkins base on "cron" trigger and when it runs, it will checks if there 
> is a list of thing to deploy produced by "Build" job.
> You can do the latter in many ways. One that's part of the Jenkins core is 
> archiveArtifacts: https://www.jenkins.io/doc/pipeline/steps/core/
> 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,
> Gianluca.
>
>
> Il giorno martedì 15 settembre 2020 alle 16:05:46 UTC+1 zil...@gmail.com 
> ha scritto:
>
>> Thanks for responding Gianluca.
>>
>> So I have a Jenkins job that builds production code mid-day, but does NOT 
>> deploy it. We have a a separate deployment job that's cron'ed at "H 21 * * 
>> 1" to deploy the code built by the mid-day build job
>>
>> Part of the mid-day build is to check if certain microservices' versions 
>> need to be deployed to production as well, and I'd like for it to trigger a 
>> job for each microservice it needs to deploy at "H/30 20 * * 1". IOW the 
>> needed microservices can not be deployed mid-day either.
>>
>> Hope that explains it.
>> On Tuesday, September 15, 2020 at 10:47:34 AM UTC-4 Gianluca wrote:
>>
>>> From what I know that's specific thing is not possible.
>>> And to be honest, it's quite strange as well.
>>>
>>> Maybe if you explain us why are you trying to do that, we could suggest 
>>> alternatives that are possible in Jenkins.
>>>
>>> Cheers,
>>> 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.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 wish I can do this (for illustration only, the cron option 
>>>> does not exist of course)
>>>>
>>>> *Step in JobA to trigger JobB to run around 9:00pm ET*
>>>> build job: JobB,
>>>>   cron: "H 21 * * 1",
>>>>   wait: true
>>>>
>>>> Any ideas? Thanks!
>>>>
>>>

-- 
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/d0720834-d0ea-4dcc-a808-75448feb7e2an%40googlegroups.com.


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 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 trigger JobB to run around 9:00pm ET
>> >build job: JobB,
>> > cron: "H 21 * * 1",
>> > wait: true
>>
>> How about JobB always runs at 9 (started from cron)
>> and always checks first, whether it should be executed
>> or not. JobA would set a "flag" or variable or whatever
>> to let JobB know that it should go on, once it's been
>> started.
>>
>> bye Fabi
>>
>>

-- 
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/61c54bf6-3da4-40cc-abad-cb766ed7d997n%40googlegroups.com.


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 trigger JobB to run around 9:00pm ET
> >build job: JobB,
> > cron: "H 21 * * 1",
> > wait: true
>
> How about JobB always runs at 9 (started from cron)
> and always checks first, whether it should be executed
> or not. JobA would set a "flag" or variable or whatever
> to let JobB know that it should go on, once it's been
> started.
>
> bye Fabi
>
>

-- 
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/c92dae95-8545-4334-ae72-31c40ab48acbn%40googlegroups.com.


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

2020-09-15 Thread zil...@gmail.com
Thanks for responding Gianluca.

So I have a Jenkins job that builds production code mid-day, but does NOT 
deploy it. We have a a separate deployment job that's cron'ed at "H 21 * * 
1" to deploy the code built by the mid-day build job

Part of the mid-day build is to check if certain microservices' versions 
need to be deployed to production as well, and I'd like for it to trigger a 
job for each microservice it needs to deploy at "H/30 20 * * 1". IOW the 
needed microservices can not be deployed mid-day either.

Hope that explains it.
On Tuesday, September 15, 2020 at 10:47:34 AM UTC-4 Gianluca wrote:

> From what I know that's specific thing is not possible.
> And to be honest, it's quite strange as well.
>
> Maybe if you explain us why are you trying to do that, we could suggest 
> alternatives that are possible in Jenkins.
>
> Cheers,
> 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.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 wish I can do this (for illustration only, the cron option does 
>> not exist of course)
>>
>> *Step in JobA to trigger JobB to run around 9:00pm ET*
>> build job: JobB,
>>   cron: "H 21 * * 1",
>>   wait: true
>>
>> Any ideas? Thanks!
>>
>

-- 
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/c2a2611f-b740-4a05-8576-30a35f9ec006n%40googlegroups.com.


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 wish I can do this (for illustration only, the cron option does 
not exist of course)

*Step in JobA to trigger JobB to run around 9:00pm ET*
build job: JobB,
  cron: "H 21 * * 1",
  wait: true

Any ideas? Thanks!

-- 
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/332c73a3-cac2-4192-bb97-b39640207ff3n%40googlegroups.com.