Questions tagged [cloudbees]
CloudBees provides products and services related to the Jenkins continuous integration/delivery server.
676
questions
0
votes
1
answer
26
views
CloudBees Jenkins Pipeline Job input Param not accessible in 'Pipeline script from SCM' section
I've defined input Jenkins variable BRANCH as below
I tried to access it in 'Pipeline script from SCM' but no luck. BRANCH value never evaluate?
I used below syntaxes.
${BRANCH}
${params.BRANCH}
${...
0
votes
0
answers
22
views
How to turn on and off stages based on a webhook JSON payload in a Jenkins Pipeline using CloudBees?
I am attempting to set conditions in a Jenkins Pipeline to turn on and off stages based on values in a JSON payload that's being sent from a BitBucket webhook. I am doing this on Cloudbees, so I have ...
1
vote
0
answers
216
views
Save and apply button isn't working in configure system Jenkins
I'm facing issue in saving/applying configuration in jenkins (Manage jenkins ---> configure system).
Neither I get an error nor warning. Does anyone face this issue before? If yes then what is the ...
0
votes
0
answers
281
views
Bitbucket Build Status of Pull Request showing failed builds, instead of latest build status
I integrated Bitbucket with Cloudbees, having the following workflow: everytime an user creates a Pull Request, having as target develop branch, a multi-branch pipeline in cloudbees will cluster the ...
1
vote
0
answers
122
views
How to configure Global build discarder in jenkins using groovy
I am trying to configure global build discard option in Cloudbees jenkins using groovy, For now, iam manually configuring global build discard in configure system..
But i couldnt find enough documents ...
0
votes
0
answers
199
views
Jenkins configure system UI broken, clicking save and apply not working
We are using CloudBees Jenkins Distribution 2.277.4.3.
We are unable to save or apply the jenkins configure system changes.
Steps to reproduce:
Go to https://<jenkins_ui>/configure with any ...
0
votes
0
answers
23
views
Jenkins Cloudbees-Jenkins-Distribution error signature verification failed in update site
I am getting below error in cloudbees-jenkins-distribution server.
Error:
There were errors checking the update sites: Signature verification failed in update site 'cloudbees-jenkins-distribution-...
1
vote
0
answers
59
views
How to configure private docker image using Amazon Elastic Container Service Jenkins plugin
I am using plugin:
Amazon Elastic Container Service (ECS) to create Jenkins agents.
I want to configure in ECS agent templates section(from the “configureClouds/ “Jenkins page) to pull private ...
0
votes
0
answers
74
views
Alerts on high Inode usage on controller/master
Cloudbees 2.289.1.2
Requirement: Get an email whenever the inode usage is high on a controller/master.
Plugins: I installed both the INodes Monitor and the Metrics Plugin. I couldn't find a way to ...
0
votes
1
answer
388
views
Handle string interpolation in shell command in jenkins
We have a pipeline where we need to invoke external API with Authorization header, whose value comes from Jenkins secret, which has been pre-configured.
When implemented as below, Jenkins complains ...
1
vote
1
answer
706
views
String interpolation in a shared library's global variable
Cloudbees 2.289.1.2
I am changing the code as per the Jenkinsfile string interpolation guidelines.
Note: I am aware that Groovy String interpolation expects double-quotes for variables to be included.
...
0
votes
0
answers
116
views
Cloudbees jenkins permission denied error on npm install (node_modules error)
I can't seem to find a solution to npm install and build a node project on our cloudbees jenkins server. I've tried a few different solutions (mainly for env vars) as mentioned in other stack ...
1
vote
1
answer
175
views
EmailExt- Jenkinsfile - HTML and CSS files are not embedded
EmailExt- Jenkinsfile - HTML and CSS files are not embedded
I am trying to attach html report in the email body and send the mail using Email-ext plugin.
email-ext attachmentsPattern: "...
0
votes
0
answers
58
views
Could not call java function from Jenkinsfile. MultipleCompilationError exception
How to call Java class function in a Jenkinsfile?
We have a class A under package A , and in Jenkins file I am trying to call a functionA by creating a new object and have called the import in ...
0
votes
1
answer
130
views
How to print AmazonEC2 Slave details via groovy script in Jenkins Script Console
I am using CloudBees Jenkins. We are configuring dynamic runners (or slaves) via AmazonEC2 Plugin where we mention runner details like AMI ID, Key, Region, Labels etc and the runners are created based ...
0
votes
0
answers
214
views
Get Feature-flag Values before Cypress spec compiled
I'm attempting to run cypress tests dynamically based on flag values from cloudbees' feature flags. something like this:
if (flags.foo.isEnabled()) {
describe(`When 'foo' feature-flag is enabled`, ()...
2
votes
2
answers
4k
views
How do I define a global variable in a scripted jenkins pipeline
I would like to define a global variable in a Jenkins Scripted Pipeline that can be accessed anywhere in the pipeline. i.e. any stage, and any method.
If I define the var at the top of the pipeline, ...
1
vote
0
answers
13
views
Clarification: How can I deploy my app in cloudbees (react-native app) using fastlane (Need steps for fastlane cloudbees setup)
Clarification: How can I deploy my app in cloudbees (react-native app) using fastlane
I need to know the steps for fastlane cloudbees setup.
But the fastlane documentation is not available for ...
1
vote
1
answer
238
views
Configuring a Java syslog client to trust self-signed certificates
I am evaluating using the CloudBees Java syslog client to read a log file and send its contents off to a syslog receiver I've already built.
My understanding is that its TcpSyslogMessageSender can be ...
1
vote
2
answers
853
views
Jenkins Pipeline - connect to Docker host using SSH credentials
We would like to use Jenkins Pipelines to work with AWS ECR images on a remote host that has Docker installed, but does not (and will not) expose the Docker socket over port 2376.
A couple of simpler ...
0
votes
1
answer
127
views
How do I get an artifact from the PR that is getting merged into master in Jenkiins
Scenario:
A developer creates a PR against the master branch. Jenkins (Cloudbees) goes to work building and validating that PR as well as generating a text file containing a build_info.txt file as an ...
1
vote
0
answers
185
views
Jenkins shared library: Failure in instantiating class via Builder pattern
CloudBees Core: 2.249.1.2-rolling
The code here is residing in a Jenkins shared library, which in turn is called by other Jenkins shared libraries.
Below is an implementation of a standard Builder ...
0
votes
1
answer
502
views
Jenkins Pipeline | Groovy exception handling
Am writing a Groovy script in Jenkins pipeline, which executes shell script on a remote server.
Based on the output of shell script, I should handle the exception.
If shell script output = 'xyz' > ...
0
votes
2
answers
913
views
How do I get a users roles from inside a Jenkins pipeline?
I'm using Jenkins Enterprise.
When I login I can go here: https://myserver/cjoc/roles/whoAmI
I see the following info:
User: me@blah.com
Groups: "Administrators" administer
External groups: &...
1
vote
0
answers
346
views
ERROR: Cannot run program "docker" (in directory "/var/jenkins_home/workspace/docker-springboot"): error=2, No such file or directory
I'm running Jenkins on docker desktop for windows, with installed and configured docker plugin.
CloudBees Docker Build and Publish plugin in Jenkins and configured my docker hub details in build ...
1
vote
1
answer
397
views
Jenkins On-prem vs Cloud(AWS)
we have Jenkins currently setup on-prem planning to migrate onto AWS, what are advantages and disadvantages running on AWS and on-prem?
1
vote
0
answers
250
views
Jenkins: Is it possible to scan specific pull request in Jenkins from github actions?
I have a github actions yaml file as follows:
name: Trigger Jenkins after PR is approved
on:
pull_request_review:
types: [submitted]
jobs:
triggerJenkins:
name: Trigger Jenkins
...
1
vote
0
answers
194
views
Jenkins's Docker Swarm plugin not resolving environment variables
I am currently setting up a Cloudbees Jenkins cluster with the help of the docker swarm plugin. I got it to work once, but haven't gotten it to work ever since. I get several different errors related ...
2
votes
0
answers
538
views
Cloudbees Jenkins: Triggering a downstream job between in a different Jenkins instance
Objective: To trigger a downstream job from a different Jenkins instance and display the console output in the upstream job.
Job type: Pipeline scripts.
The complete code below:
properties([
...
0
votes
1
answer
82
views
Can circleCI prevent bad commits from landing on master like Jenkins can?
I am looking into circle CI and other solutions as well. I have a slight description of what we have jenkins do here
https://softwareengineering.stackexchange.com/a/332400/63472
but to be more ...
0
votes
1
answer
3k
views
Jenkins pipeline: wait for another job to pause
I have several testing projects (API tests, UI Selenium tests etc), which test the same application. For now, the steps of app. deployment are duplicated in each jenkins file.
The goal is to have a ...
4
votes
2
answers
2k
views
How to create a secret-text type of credential for Jenkins using Jenkins API?
So far, I'm using the credentials plugin on Jenkins and I do a POST to {JENKINS_URL}/credentials/store/system/domain/_/createCredentials using a credentials.xml that looks like this:
<com....
0
votes
1
answer
4k
views
How to setup Jenkins service/system.d to automatically run at server reboot
I would like to set up a service on Ubuntu 18.04 to run automatically to start up Jenkins each time the server is rebooted.
My version of Jenkins comes from the Cloudbees distribution (https://...
-1
votes
2
answers
1k
views
Jenkins cannot use docker: Cannot connect to the Docker daemon
I've installed jenkins in my k8s cluster through helm.
Ive been trying to build the docker image and push it to gitlab registery so i can use it for deployment later though cloudbees docker plugin but ...
1
vote
1
answer
290
views
Copy subfolder with groovy in Jenkins
I am trying to script a groovy script which copies a complete folder with all subfolder and jobs to the actual folder, where the script is executed.
Here you can see how my folderstructure looks like....
0
votes
1
answer
858
views
Running Protractor Tests in Jenkins (CloudBees Jenkins Enterprise)
In the spirit of continuous integration, I am attempting to add my newly written Protractor tests to the execution shell of my Jenkins build. The goal is to have Jenkins run these tests before it ...
3
votes
2
answers
2k
views
Bitbucket branch source plugin fails to scan if jenkinsfile doesnt exist
i have Bitbucket team project set up to scan the organization folder and create the pipelines, but in absence of Jenkinsfile the job fails
Checking branch master from UKCEP/amatch-acceptance
ERROR: [...
1
vote
0
answers
22
views
How to print proxy and add it to the server?
I'm trying to ssh into the server. I added my credential in Jenkins and called it from Jenkins. I think I might be getting a proxy error and I don't know how to print proxy in Jenkins. print $...
0
votes
0
answers
592
views
is there a plugin in jenkins to limit characters input for a string parameter?
I am using a String parameter for my jenkins job. Parameter shouldn't allow more than 11 characters when a user inputs during build. Does Jenkins have a plugin that can do this?
My workaround: By ...
0
votes
1
answer
520
views
Jenkins installation issue through Ansible playbook
I have written ansible playbook to install cloudbees jenkins in our production VM's. While running ansible playbook for the first time, it got successful but jenkins not up and running and same ...
0
votes
2
answers
82
views
Scheduling of Automation Tasks Using Jenkins With Selenium Java
I was wondering if I could get some advice regarding automating the scheduling of selenium test cases in java. I have a set of test cases written in Java with selenium and maven that go onto a website,...
0
votes
0
answers
94
views
npm dependencies (serverless framework) isn't installed in the latest version on Jenkins (CJE)
I am trying to deploy a node.js project (serverless framework application to be specified). Although it is not error related, but I found the console of Jenkins output look like this
But in the ...
0
votes
1
answer
57
views
CloudBees: Pipeline job: Will retention builds on condition match delete Permanent artifacts?
I have pipeline job in CloudBees which builds and uploads artifact on artifactory server. I have set BuildRetention Period. Using groovy script to run the job.
Command used is as follows:
&...
2
votes
0
answers
65
views
Jenkins Exclude Regions with Git needs workspace (trigger a build unnecessarily)
We have a git repo that has the following directory structure:
src/
test/
terraform/
Whenever someone does a commit to the repo, git sends a message to Jenkins to trigger a build. Perfect!
Except ...
3
votes
0
answers
286
views
MissingMethodException while using shared libraries
Cloudbees 2.121.3.1
Partial Jenkinsfile of the main component that is failing viz. Alfaclient:
properties([parameters([string(defaultValue: "", description: "List of components", name: '...
0
votes
0
answers
253
views
build retention using jfrog for multi-configuration project
I have multi-configuration project in Jenkins which creates an artifact and uploads it to artifactory server using jFrog CLI command.
I need to add build retention period during uploading using jFrog ...
0
votes
3
answers
4k
views
Jenkins role based strategy is not reflecting
I would like to manage my users in Jenkins with admin.I m planning to do it by Role based strategy in configure global setting option. But i cant see the option even Cloudbees Role Based Access ...
1
vote
2
answers
1k
views
Jenkins scripted pipeline to trigger job only when commits happen in Github
We use CloudBees-2.138.2.2 Jenkins and have had lot of challenges to trigger jenkins jobs only based on commits in our Github repo. I am still looking for the exact working script for scripted ...
0
votes
0
answers
293
views
Jenkins, run job in Docker
I am using Jenkins for my CI/CD and want to run most of my jobs in Docker.
I installed the plugin "CloudBees Docker Custom Build Environment Plugin" which allow me to run my jobs in a given docker as ...
3
votes
0
answers
426
views
Error cleanup script CloudBees Jenkins unable to resolve class com.cloudbees.hudson.plugins.folder.AbstractFolder
My question is about a groovy script that fails.
I tried to run it from a freestyle job with a Build Step "Execute system Groovy script" and 'Groovy command' where I have pasted the script from this ...