Questions tagged [jenkins-pipeline]
Questions about the Jenkins “Pipeline” plugin suite (formerly “Workflow”). Not about pipelines in Jenkins in general (e.g. using downstream jobs).
jenkins-pipeline
12,879
questions
0
votes
0
answers
8
views
Jenkins Coverage Plugin isn't publishing to GitHub
I have a .net test which generates a coverage report for my project, and it publishes the coverage report with Jenkins using the Coverage plugin (https://plugins.jenkins.io/coverage/).
However this ...
-1
votes
0
answers
20
views
gitParameter doesn't work when it is in a shared library
by jenkins pipeline script, the following code (pls pay attetion to gitParameter) works as expected. list of branches show up when clicking on "build with parameters".
Pipeline declarative ...
0
votes
0
answers
23
views
Want to use active choice parameter value in Root POM path in Jenkins
I have a job in Jenkins consisting of multiple maven projects and their respective pom.xml file. By giving active choice parameter value in root POM path user can select which project to run. My ...
0
votes
1
answer
33
views
In Groovy, how can I pass a JSON-formatted string to a function so the function treats it as JSON?
In a Jenkins pipeline, I executed an AWS command that gave me an array of JSONs, like this
def jsonArray = readJSON text: sh(returnStdout: true,
script: "aws ...
-1
votes
1
answer
20
views
kubectl get pods -n ${params.environment} -o wide > pod_list_deployment_name.txt
I wrote this command in a jenkins file:
kubectl get pods -n ${params.environment} -o wide > pod_list_deployment_name.txt
I wrote a shell command in jenkins file I am repeatedly getting this error:...
1
vote
1
answer
28
views
Externalising a Jenkins pipeline stage (to a file/library?)
I've got an SoD (segregation of suties) check that is the first stage in a few of our Jenkins pipelines, so was wondering if there's any way to load a stage from an external resource (i.e. file, ...
0
votes
0
answers
17
views
Jenkins pipelines sharing something common without Sharing Libraries feature
Say I got two different jenkin files in the same project doing different things. These two jenkins files share something in common (like a stage). I hope to extract this stage into a groovy file and ...
-2
votes
0
answers
27
views
Creating a Jenkins plugin for adding custom build parameters [closed]
I am new to Jenkins, Java and Maven. I need to create a Jenkins plugin to add some required string fields to build parameters and those should be accessible through environment variables as other ...
0
votes
0
answers
29
views
How to get commit hash of current Jenkinsfile without checkout?
Either when creating a new plugin or just using groovy in the pipeline, how to get the commit hash of the Jenkinsfile. The commit hash is visible in the logs without using any kind of checkout or ...
-1
votes
0
answers
19
views
IBM UDeploy - Streamline component process
In our current setup with IBM udeploy. We have a separate component process for each AWS endpoint(eg:east-1/east-2/west-2). The only difference between these processes is the API property in the CF ...
0
votes
0
answers
31
views
running npm in jenkins gives different output
I made a pipeline where the script would clone a git repo and build the application in server where jenkins was hosted . I verified the node and npm versions with respect to server and jenkins ...
0
votes
1
answer
39
views
Jenkins: the env vars MAVEN_OPTS and MAVEN_ARGS are ignored by Maven
On Jenkins, Maven ignores the environment variables MAVEN_OPTS and MAVEN_ARGS that I set in the same pipeline. Here the code I use:
pipeline {
agent {
docker {
...
0
votes
1
answer
25
views
Getting "ErrorAction$ErrorId: edf4f356-929c-4720-a57f-b2bdef027f2c" error from Jenkins when trying to extract information from a child job
I have a use case where I want to extract information from a Child job in the parent job.
This is my pipeline script:
pipeline {
agent any
stages {
stage('Validate Other Job') {
...
0
votes
1
answer
35
views
Map variable becomes null when manipulated as part of a Jenkins pipeline
I'm building a Jenkins pipeline, and I have this method:
private Map processServerMapping(Map serverMapping, List newVersions) {
def currentVersions = serverMapping.values().toSet()
def ...
0
votes
0
answers
13
views
TestNG Parallel execution in Jenkins Selenium Grid
I am executing my selenium testng tests in parallel in my Jenkins server which is on a VM.
I am using selenium standalone grid having Max.Concurrency as 4.
My tests run perfectly fine in my local in ...