Re: Git Parameter Plug-in does not list tags or branches

2015-02-16 Thread Amedee Van Gasse
runs. (more logging needed I guess). On Monday, February 16, 2015 at 4:46:50 PM UTC+1, Mark Waite wrote: On Mon, Feb 16, 2015 at 6:22 AM, Amedee Van Gasse amedee@gmail.com javascript: wrote: I have this in the logs: (** is just to obfuscate the url) I don't understand why

Re: Git Parameter Plug-in does not list tags or branches

2015-02-16 Thread Amedee Van Gasse
I added `env | sort` as a shell script in the pre- and post build steps. There are several GIT_* variables set, but GIT_SSH is not one of them, so that value is blank. So I'm probably looking in the wrong place. On Monday, February 16, 2015 at 5:12:24 PM UTC+1, Amedee Van Gasse wrote: Okay

Re: Git Parameter Plug-in does not list tags or branches

2015-02-16 Thread Amedee Van Gasse
) at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition$DescriptorImpl.doFillValueItems(GitParameterDefinition.java:536) ... 85 more On Monday, February 16, 2015 at 1:01:36 PM UTC+1, Amedee Van Gasse wrote: Jenkins version: 1.593 Git Parameter Plug-In http://wiki.jenkins-ci.org/display/JENKINS/Git+Parameter+Plugin

Re: Git Parameter Plug-in does not list tags or branches

2015-02-17 Thread Amedee Van Gasse
, Amedee Van Gasse wrote: Jenkins version: 1.593 Git Parameter Plug-In http://wiki.jenkins-ci.org/display/JENKINS/Git+Parameter+Plugin: 0.4.0 GIT client plugin http://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin: 1.16.1 I have a parameterized build. My parameter is Git Parameter

Re: Git Parameter Plug-in does not list tags or branches

2015-02-16 Thread Amedee Van Gasse
On Monday, February 16, 2015 at 1:01:36 PM UTC+1, Amedee Van Gasse wrote: Jenkins version: 1.593 Git Parameter Plug-In http://wiki.jenkins-ci.org/display/JENKINS/Git+Parameter+Plugin: 0.4.0 GIT client plugin http://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin: 1.16.1 I have

Git Parameter Plug-in does not list tags or branches

2015-02-16 Thread Amedee Van Gasse
Jenkins version: 1.593 Git Parameter Plug-In http://wiki.jenkins-ci.org/display/JENKINS/Git+Parameter+Plugin: 0.4.0 GIT client plugin http://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin: 1.16.1 I have a parameterized build. My parameter is Git Parameter. Name: TAG_TO_BUILD

Re: Git Parameter Plug-in does not list tags or branches

2015-02-16 Thread Amedee Van Gasse
, 2015 at 1:01:36 PM UTC+1, Amedee Van Gasse wrote: Jenkins version: 1.593 Git Parameter Plug-In http://wiki.jenkins-ci.org/display/JENKINS/Git+Parameter+Plugin: 0.4.0 GIT client plugin http://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin: 1.16.1 I have a parameterized build. My

Re: Violations cause a java.lang.IllegalStateException: cannot change build result while in COMPLETED

2016-05-31 Thread Amedee Van Gasse
I also have this error in Jenkins 2.7 On Tuesday, October 14, 2014 at 7:05:57 PM UTC+2, llaumgui wrote: > > Hi, > > with Jenkins 1.584 and Violations plugin 0.7.11, when I build my project > on Jenkins, I have a successfull build, but a IllegalStateException caused > by Violations plugins cause

Declarative pipeline syntax: how to configure blockOn and waiting for a time slot to start?

2019-03-10 Thread Amedee Van Gasse
I have a Bitbucket Server Project. I am using declarative Jenkinsfiles All branches/PRs of all repos in the Project are built if they have a Jenkinsfile. Wonderful. The branches/PRs are built when there is new git activity. Wonderful. There is one repo with 2 requirements that I'm stuck on:

Re: Declarative pipeline syntax: how to configure blockOn and waiting for a time slot to start?

2019-03-10 Thread Amedee Van Gasse
Can I do item 1 with lockable resources? But then wouldn't every Jenkinsfile in all of my repos require lockable resources? So I think that's also not the way to go but I could be wrong. On Sunday, March 10, 2019 at 12:40:26 PM UTC+1, Amedee Van Gasse wrote: > > I have a Bitbucket

Declarative Jenkinsfile: different cron trigger per branch

2019-07-09 Thread Amedee Van Gasse
I have a *declarative* Jenkinsfile. I want to have a daily build of the develop branch. I currently have the following trigger: triggers { cron(env.BRANCH_NAME == 'develop' ? '@midnight' : '') } Now I also want to build the master branch. Not daily, but weekly. I already know

Re: Declarative Jenkinsfile: different cron trigger per branch

2019-07-09 Thread Amedee Van Gasse
To answer my own question: #!/usr/bin/env groovy def schedule = env.BRANCH_NAME.contains('master') ? '@weekly' : env.BRANCH_NAME == 'develop' ? '@midnight' : '' pipeline { triggers { cron(schedule) } Worked for me. On Tuesday, July 9, 2019 at 10:34:06 AM UTC+2, Amedee Van

Re: Declarative Jenkinsfile: different cron trigger per branch

2019-07-16 Thread Amedee Van Gasse
On Saturday, July 13, 2019 at 1:07:16 PM UTC+2, Ivan Fernandez Calvo wrote: > > Hi, > > Every branch has its own Jenkinsfile, so you can have different > configuration on every Jenkinsfile > Hi Ivan, Merge conflicts shall be avoided at all possible cost, therefor my previous solution shall

Copy build history from one job to another job

2019-07-16 Thread Amedee Van Gasse
I have a Jenkins job that is a declarative pipeline. It's URL is /job/dnscheck/. I started using Bitbucket projects on Jenkins, and now that Jenkinsfile is also discovered and the same job lives at /job/website/job/dnscheck/job/master/ I want to copy the entire history (log files etc) from

Re: How to start, in a Jenkinsfile, a multibranch job inside a Bitbucket folder?

2020-09-01 Thread Amedee Van Gasse
arpen/${java.net.URLEncoder.encode branchName, 'UTF-8'}" This works. Moral of the story: never use spaces in your folder names! On Tuesday, September 1, 2020 at 8:28:42 AM UTC+2 Amedee Van Gasse wrote: > In a Jenkinsfile, to start a parameterized pipeline job from another job, > I have this code snippet: &

How to start, in a Jenkinsfile, a multibranch job inside a Bitbucket folder?

2020-09-01 Thread Amedee Van Gasse
In a Jenkinsfile, to start a parameterized pipeline job from another job, I have this code snippet: build job: 'build-sharpen-branch', parameters: [ [$class: 'StringParameterValue', name: 'BRANCHNAME', value: mergeBranchname] ] This already works as expected, and it will

Is there a Jenkins plugin that can create and terminate Amazon EC2 instances as required by the build queue?

2020-07-14 Thread Amedee Van Gasse
I have a job that makes use of Tesseract for OCR. Tesseract runs *a lot* faster on GPU-optimized computers. So I was thinking of running this job on an AWS EC2 instance of type P or G, which have NVIDIA Tesla GPUs. However, these instance types are quite expensive, and the job runs only about 10

Jenkins Pipeline - wait for non-job items (ComputedFolder, Multibranch Pipeline Project)

2020-12-08 Thread Amedee Van Gasse
I'm using multibranch pipelines projects in Jenkins. I let Jenkins index new branches. I need Jenkins to wait until indexing of a multibranch pipeline project is complete. This is my current code: def triggerScanMultibranchPipeline(projectDir, repo) { def multibranchProject =

Re: Windows agent connected over ssh - requires elevation to install jdk-8-oracle

2020-12-18 Thread Amedee Van Gasse
net/ or for you, from https://adoptopenjdk.net/) I haven't really seriously looked at the difference between OpenJDK and AdoptOpenJDK. -- Amedee Van Gasse On Friday, December 18, 2020 at 2:39:32 PM UTC+1 Mark Waite wrote: > I use a WIndows Server 2019 ssh agent that has AdoptOpenJDK 8u275 u

Re: Windows agent connected over ssh - requires elevation to install jdk-8-oracle

2020-12-18 Thread Amedee Van Gasse
is that the Oracle JDK installation executable is just something particularly nasty that has to be worked around... On Friday, December 18, 2020 at 7:33:18 PM UTC+1 Mark Waite wrote: > On Fri, Dec 18, 2020 at 10:29 AM Amedee Van Gasse > wrote: > >> The Oracle JDK is a requirement for

Windows agent connected over ssh - requires elevation to install jdk-8-orable

2020-12-18 Thread Amedee Van Gasse
There was a thread here last month "Recommended way to setup a windows agent nowadays?" I have a (new) windows agent (Windows Server 2019) that is connected through SSH, as described in that thread. It's configured through Packer and Ansible, to avoid clickety-click Next-Next-Next-Finish. I

SSH connection issue with Host Key Verification Strategy

2021-01-12 Thread Amedee Van Gasse
Current Host Key Verification Strategy is Non Verifying Verification Strategy. This works, but is not secure. The agent is created using Packer, and Ansible as provisioner, and then started with Terraform. This Ansible playbook uploads the files id_ed25519 and id_ed25519.pub to the .ssh

Re: How to get rid of noisy warning "No suitable checks publisher found"

2021-05-19 Thread Amedee Van Gasse
If anyone is still going to answer this question, go ahead, but after a month we've given up and just accept that the messages are there. On Monday, April 19, 2021 at 3:14:02 PM UTC+2 Amedee Van Gasse wrote: > One of the Jenkins plugins dragged in the *Checks API* as a dependency > a

Provision EC2 node: gets destroyed as soon as it is ready

2021-05-07 Thread Amedee Van Gasse
I have added an EC2 cloud with the intention of using Windows instances. The Windows AMI is configured to use SSH connection, not WinRM. When I provision a Windows instance, I see it starting in the AWS console, and I see this in the Jenkins console: May 07, 2021 5:45:42 PM INFO

Re: Provision EC2 node: gets destroyed as soon as it is ready

2021-05-07 Thread Amedee Van Gasse
dows\\Temp\\/remoting.jar -workDir C:\Users\jenkins HTTP ERROR 404 Not Found URI: /computer/EC2%20(eu-central-1%20Windows)%20-%20Windows%20(i-02435726c827f7a6a)/logText/progressiveHtml STATUS: 404 MESSAGE: Not Found SERVLET: Stapler On Friday, May 7, 2021 at 6:17:34 PM UTC+2 Amedee Van G

Set-Variable : Cannot process command because of one or more missing mandatory parameters: Name.

2021-02-09 Thread Amedee Van Gasse
I got this when connecting to a Windows node, how do I fix this? [02/09/21 10:20:58] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed. [02/09/21 10:20:58] [SSH] Authentication successful. [02/09/21 10:20:59] [SSH] The remote user's environment is:

Re: Set-Variable : Cannot process command because of one or more missing mandatory parameters: Name.

2021-02-09 Thread Amedee Van Gasse
FYI PowerShell is the default SSH shell on this machine. On Tuesday, February 9, 2021 at 10:27:38 AM UTC+1 Amedee Van Gasse wrote: > I got this when connecting to a Windows node, how do I fix this? > > [02/09/21 10:20:58] [SSH] SSH host key matches key seen previously for &g

java.lang.NoClassDefFoundError: Could not initialize class com.sun.proxy.$Proxy9

2021-02-11 Thread Amedee Van Gasse
Jenkins version: 2.263.3 Jenkins master: Linux Jenkins node: Windows Server 2019 Job: multibranch pipeline with Maven build steps Build fails with hudson.remoting.Channel$CallSiteStackTrace: Remote call to aws-windows-eu-central-1 at

Re: Set-Variable : Cannot process command because of one or more missing mandatory parameters: Name.

2021-02-11 Thread Amedee Van Gasse
it a while back but didn't >> make good progress. >> >> On Tue, Feb 9, 2021 at 2:45 AM Amedee Van Gasse >> wrote: >> >>> FYI PowerShell is the default SSH shell on this machine. >>> >>> On Tuesday, February 9, 2021 at 10:27:38 AM UTC+

Re: jenkins and bash

2021-03-06 Thread Amedee Van Gasse
Put this as the first line in your shell scripts: #!/bin/bash -ex -e exits the script immediately if a command exits with a non-zero status. -x echos the current line in the script when it's executed. My best guess is that an error occurs in your script, which is silently ignored by Bash, but

Re: Jenkins does not install one particular CustomTool (already tried: extract ZIP, shell script)

2021-03-08 Thread Amedee Van Gasse
, March 5, 2021 at 8:39:38 PM UTC+1 Amedee Van Gasse wrote: > I have defined a Custom Tool Tesseract, which extracts a ZIP file. > > In my Scripted Pipeline, I have this code: > > withEnv([ > "gsExec=$gsPath", > "compareExec=$comparePath&quo

How to add additional mysql-connector after installing dependency-check in Jenkins Global Tool Configuration

2021-02-23 Thread Amedee Van Gasse
I'm going to use dependency-check on Jenkins to check a .NET build. I have added a Dependency-Check installation to Jenkins' Global Tool Configuration. I'm using an install from dl.bintray.com. In my Jenkins Pipeline, I have: environment { DEPENDENCY_CHECK = tool name: 'Dependency Check',

Re: How to delete the old name of a renamed repository in an organization folder (multibranch pipeline)

2021-02-23 Thread Amedee Van Gasse
Mittwoch, 17. Februar 2021 um 15:55:26 UTC+1: >>> >>>> I've used the "Delete" selection from the dropdown menu to remove >>>> individual builds (like the disabled PR jobs that are visible on >>>> ci.jenkins.io) and pull request job

Custom Tool plugin: Enable Versions - where is the accurate documentation?

2021-02-23 Thread Amedee Van Gasse
I want to install a custom tool. There is a checkbox "Enable Versions", and I thought, this tool may have multiple versions some day, let's try this. Then a very, very complicated configuration appeared, with does not match the screenshots on

Re: How to add additional mysql-connector after installing dependency-check in Jenkins Global Tool Configuration

2021-02-23 Thread Amedee Van Gasse
8.0.22.jar" del *.zip ) It's as ugly as the night, but it works. If anyone has an idea for a more elegant solution, please enlighten me. On Tuesday, February 23, 2021 at 4:33:48 PM UTC+1 Amedee Van Gasse wrote: > I'm going to use dependency-check on Jenkins to check a .NET build. &g

Re: remove square bracket regexp in ansible playbook

2021-02-23 Thread Amedee Van Gasse
You're probably mistaken in your mailing lists, this is the Jenkins mailing list. I thing you should ask over at https://groups.google.com/g/ansible-project (ansible-proj...@googlegroups.com) On Monday, February 22, 2021 at 10:31:38 AM UTC+1 sakshira...@gmail.com wrote: > hi all, > > i am new

Jenkins does not install one particular CustomTool (already tried: extract ZIP, shell script)

2021-03-05 Thread Amedee Van Gasse
I have defined a Custom Tool Tesseract, which extracts a ZIP file. In my Scripted Pipeline, I have this code: withEnv([ "gsExec=$gsPath", "compareExec=$comparePath", "Path+TESSERACT=${tool name: 'Tesseract', type: 'com.cloudbees.jenkins.plugins.customtools.CustomTool'}"

Possible bug in EC2 plugin: check of SSH key may be too strict (confirmation needed before filing bug report)

2021-04-13 Thread Amedee Van Gasse
I have a question about https://github.com/jenkinsci/ec2-plugin. It may be a bug, but I'd like to have confirmation before I try to find out how to file a bug report. In https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/EC2Cloud.java there is the following

Re: EC2 provision: A problem occurred while processing the request

2021-04-15 Thread Amedee Van Gasse
I got it sorted with help on Stack Overflow: https://stackoverflow.com/questions/67079854/jenkins-ec2-plugin-instances-not-starting/67104641#67104641 Missing subnet. On Wednesday, April 14, 2021 at 10:05:08 AM UTC+2 Amedee Van Gasse wrote: > When provisioning a configured EC2 cl

How to get rid of noisy warning "No suitable checks publisher found"

2021-04-19 Thread Amedee Van Gasse
One of the Jenkins plugins dragged in the *Checks API* as a dependency and now *EVERY* build has this annoying message at the bottom: [Checks API] No suitable checks publisher found. This does not fail any build by itself. It's just annoying noise and I don't want it. And now each time a

Re: Possible bug in EC2 plugin: check of SSH key may be too strict (confirmation needed before filing bug report)

2021-04-16 Thread Amedee Van Gasse
e i checked in > 2020) > People been asking for a few year, but maybe the plugin should accept > them already, hopefully only a matter of time till aws does > > On Tue, 13 Apr 2021 at 11:49, Amedee Van Gasse > wrote: > > > > So I went ahead and submitted a pull reque

EC2 plugin: Connection strategy field fails on every change

2021-04-13 Thread Amedee Van Gasse
Whenever you change the value of the *Connection strategy field*, its validation fails with: *Could not find selected connection strategy*. It looks like the same error as described in https://issues.jenkins.io/browse/JENKINS-61161 and https://github.com/jenkinsci/ec2-plugin/pull/538, however

EC2 plugin: instances not starting

2021-04-13 Thread Amedee Van Gasse
$JENKINS_URL/configureClouds/ Add new cloud: *Amazon EC2* Name: *Amazon EC2 eu-central-1* Amazon EC2 Credentials: *AKIA...* Region: *eu-central-1* EC2 Key Pair's Private Key: *ubuntu* Test connection: *success* Advanced... Instance Cap: *3* No delay provisioning: *checked* Add AMI Description:

Re: Possible bug in EC2 plugin: check of SSH key may be too strict (confirmation needed before filing bug report)

2021-04-13 Thread Amedee Van Gasse
13, 2021 at 11:19:16 AM UTC+2 Amedee Van Gasse wrote: > I have a question about https://github.com/jenkinsci/ec2-plugin. It may > be a bug, but I'd like to have confirmation before I try to find out how to > file a bug report. > > In > https://github.com/jenkinsci/ec2-plugin/bl

Re: Possible bug in EC2 plugin: check of SSH key may be too strict (confirmation needed before filing bug report)

2021-04-13 Thread Amedee Van Gasse
Oh wow, my PR is merged already, I did not expect that! On Tuesday, April 13, 2021 at 11:49:11 AM UTC+2 Amedee Van Gasse wrote: > So I went ahead and submitted a pull request anyway: > https://github.com/jenkinsci/ec2-plugin/pull/595 > > I'm sure it's not all up to standards but

Global Tool Configuration: Groovy installer uses wrong URL

2021-04-14 Thread Amedee Van Gasse
I wanted to share a Slack message that a colleague sent me today. -- @here as an FYI, in the *Global Tool Configuration* on *Jenkins*, I have renamed the *2.5.6* Groovy installer to *2.5.6-old* and added a new *2.5.6* Groovy installer with the download link hard-coded (

EC2 provision: A problem occurred while processing the request

2021-04-14 Thread Amedee Van Gasse
When provisioning a configured EC2 cloud (in the nodes page in Jenkins when you hit the provision via button), I get this error: Oops! A problem occurred while processing the request. Logging ID=8ead3651-3809-4a47-984c-e0e494c705bb -- You received this message because you are subscribed to

Re: Set-Variable : Cannot process command because of one or more missing mandatory parameters: Name.

2021-02-12 Thread Amedee Van Gasse
a debugging statement. -- Amedee On Friday, February 12, 2021 at 11:42:12 AM UTC+1 Amedee Van Gasse wrote: > I'm happy to report that Jenkins works fine with PowerShell 7! > > > I have this in my connection log: > > [02/12/21 10:58:38] [SSH] SSH host key matches key seen previousl

Re: Set-Variable : Cannot process command because of one or more missing mandatory parameters: Name.

2021-02-12 Thread Amedee Van Gasse
h.exe. Powershell legacy and Powershell Core have a different executable name, intentionally, so they can be used side-by-side. I hope this is useful for anyone. -- Amedee On Thursday, February 11, 2021 at 11:32:53 AM UTC+1 Amedee Van Gasse wrote: > That would actually be great and very much a

How to get a System Groovy Script in Git

2021-02-15 Thread Amedee Van Gasse
Someone here at the company wrote a "System Groovy Script" that runs as a nightly job on master. The code of the script, all 100 lines of it, is directly in the job configuration in the web interface. I would like to get that code in a git repository, so that it's easy to roll back if needed,

Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
I do when I develop shared library for example. > > On Tue, Feb 16, 2021 at 1:47 PM Amedee Van Gasse > wrote: > >> I am happy to report that after adding the following jars to my lib >> folder, I no longer have errors: >> >> jenkins-core-2.263.3.jar

Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
of yore from before dependency management. I'd prefer not to have the lib folder with jars added to git. What would be a nice dependency management ish way of doing it? On Tuesday, February 16, 2021 at 1:08:01 PM UTC+1 Amedee Van Gasse wrote: > Following up on my previous question about a Sys

Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
The unfortunate part is that I still have to manually hunt down the correct jars and add them to git, but at least I can finally start with coding! On Tuesday, February 16, 2021 at 1:21:23 PM UTC+1 Amedee Van Gasse wrote: > Answering my own question for at least the hudson.* and jenkins.* impo

System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
Following up on my previous question about a System Groovy Script. I have a .groovy file in a git repo. I have cloned the git repo to my pc. I have opened the directory in IntelliJ IDEA. Now I get a lot of red text. None of the imports are found. It looks like this: import hudson.model.*;

How to delete the old name of a renamed repository in an organization folder (multibranch pipeline)

2021-02-17 Thread Amedee Van Gasse
I have a Bitbucket project organization folder. Each repository inside the project is a multibranch pipeline. A few weeks ago one of the repositories inside the project was renamed. The old repository name is still shown in Jenkins, as disabled. How do I remove the old repository name? I have

Re: How to delete the old name of a renamed repository in an organization folder (multibranch pipeline)

2021-02-17 Thread Amedee Van Gasse
d work for disabled > organization folder jobs as well? > > On Wed, Feb 17, 2021 at 6:32 AM Amedee Van Gasse < > amedee.vanga...@gmail.com> wrote: > >> I have a Bitbucket project organization folder. >> Each repository inside the project is a multibranch pipeline.

Re: How to delete the old name of a renamed repository in an organization folder (multibranch pipeline)

2021-02-17 Thread Amedee Van Gasse
dropdown menu to remove >> individual builds (like the disabled PR jobs that are visible on >> ci.jenkins.io) and pull request jobs. Maybe that would work for >> disabled organization folder jobs as well? >> >> On Wed, Feb 17, 2021 at 6:32 AM Amedee Van Gasse >&g

Why does Jenkins need to read the memory of lsass.exe?

2023-08-17 Thread Amedee Van Gasse
Hi, Security question here. Is there any reason why Jenkins would ever need to request the content of c:\windows\system32\lsass.exe (Local Security Authority Subsystem Service)? The endpoint protection on the Jenkins device is denying Jenkins access to lsass.exe, and the devs are unable to