Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Linux VMs cannot run jfrog-cli as "jenkins" home directory is "adoptopenjdk" #3790

Closed
andrew-m-leonard opened this issue Oct 29, 2024 · 2 comments

Comments

@andrew-m-leonard
Copy link
Contributor

The jenkins home directory for Azure Linux VMs is /home/adoptopenjdk, instead of /home/jenkins, this results in plugin tools like "jfrog-cli" not being found as the jenkins pipeline searches /home/jenkins/tools which does not exist...?

@andrew-m-leonard andrew-m-leonard changed the title Azure Linux VMs "jenkins" home directory is "adoptopenjdk" Azure Linux VMs cannot run jfrog-cli as "jenkins" home directory is "adoptopenjdk" Oct 29, 2024
@andrew-m-leonard
Copy link
Contributor Author

Temporarily disabled the ci.adoptium.net Azure Cloud Linux-build agent, by changing dockerBuild tag to XdockerBuild
This is to allow the installer job to run successfully on the 1 static dockerBuild node.

@andrew-m-leonard
Copy link
Contributor Author

The problem is not actually the VM, it's due to the Artifactory installer upload pipeline incorrectly combining "Declarative" and "Scripted" Jenkins pipeline syntax: https://github.com/adoptium/installer/blob/master/linux/Jenkinsfile
As stated in the Jfrog-cli doc: https://jfrog.com/help/r/jfrog-integrations-documentation/use-declarative-or-scripted-syntax-with-pipelines

When working with the Jenkins Artifactory plugin, be sure to choose either scripted or declarative. In other words, do not use declarative and scripted steps within a single pipeline. This will not work.

The jfrog-cli Declarative tools definition sets up the pipeline environment for the agent the top-level pipeline runs on, the pipeline then switches to "scripted" mode and switches context using node(), the jfrog-cli will then not necessarily work in that context.

Raised installer issue: adoptium/installer#1042

@sxa sxa added this to the 2024-10 (October) milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants