Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 22:50
    batmat review_requested #3874
  • Jan 31 21:29
    basil opened #3875
  • Jan 31 18:18
    nisarg1499 opened #3874
  • Jan 31 18:12
    nisarg1499 edited #3873
  • Jan 31 18:04
    nisarg1499 edited #3873
  • Jan 31 18:03
    nisarg1499 opened #3873
  • Jan 31 15:53
    batmat synchronize #3865
  • Jan 31 15:24
    jglick commented #3861
  • Jan 31 15:18
    nisarg1499 closed #3863
  • Jan 31 15:18
    nisarg1499 commented #3863
  • Jan 31 15:13
    oleg-nenashev commented #3863
  • Jan 31 15:11
    nisarg1499 reopened #3863
  • Jan 31 15:11
    nisarg1499 closed #3863
  • Jan 31 15:01
    nisarg1499 synchronize #3863
  • Jan 31 14:54
    batmat synchronize #3865
  • Jan 31 14:45
    batmat synchronize #3865
  • Jan 31 14:16
    Wadeck closed #3805
  • Jan 31 14:12
    pjanouse commented #3802
  • Jan 31 14:12
    pjanouse commented #3802
  • Jan 31 14:05
    pjanouse synchronize #3802
Alena86
@Alena86
Hey guys, I'm wondering if anyone is running a pipeline script Jenkins jobs that is being triggered by the perforce trigger? I am trying to set this up and I cannot get the job to start when I run the manual p4 trigger? Thanks
SergioSheldon
@SergioSheldon
@Alena86 hi! pls copy piece of your code here
lukiszlak
@lukiszlak
Hi guys!
Is there any way to have a main node on a job and then a secondary ones?
KoniAnastasia
@KoniAnastasia
Hello guys, I need help with something. In github it says to ask here before I open a ticket
lukiszlak
@lukiszlak
What i mean is that the job would always run on the main node unless the main node is busy. Then and only then it would build on the secondary nodes
Has anyone did something like this?
SergioSheldon
@SergioSheldon
hi! Where are find eBuild Start time, End time, Duration of a build in Jenkins for each Job?
Ullrich Hafner
@uhafner
@SergioSheldon I’m not sure if I understand correctly, but you can see these values in the UI or use the remote API to get the exact values.
SergioSheldon
@SergioSheldon
what better to use freestyle project or pipeline jenkins?
mbaitelman
@mbaitelman
is there a way to get the cause of an upstream job when it triggers a sub job?
ie if user X triggers job A which triggers job B how can I get user X info inside a pipeline.
Currently using currentBuild.rawBuild.getCause(hudson.model.Cause$UpstreamCause).getShortDescription() but need to get the value from a level higher
Alex Earl
@slide
currentBuild.rawBuild.getCause(hudson.model.Cause$UpstreamCause).run.getCause(...)
JohnLussmyer
@JohnLussmyer
I'm using Jenkins on Ubuntu. I need to do some builds and testing of my application - using Java 13.
Since Jenkins won't run with Java 13, I need to define a Tool JDK for Java 13.
I installed Zulu JDK 13 via "apt install". I've left JDK 8 as the default for Jenkins.
When I attempt to create a Jenkins Tool definition for JDK 13, it gives me this error for the JDK JAVA_HOME:
" /usr/lib/jvm/zulu-13-amd64 is not a directory on the Jenkins master (but perhaps it exists on some agents)"
The path is correct. that path contains the bin directory.
I'm guessing that Jenkins can't access it since all the JVM's are owned by root. Though at the command line, you can use the default JVM.
Any ideas on how to make this work?
Gavin Mogan
@halkeye
directories with +x should be readable by others
Kalby Imanie
@kalbyimanie
Hi, i have been digging informations about implementing reactive choice paramater in my jenkins scripted pipelines, do you guys ever figured that out how?
my code:
def projectProps = [
  parameters ([
    choice(description: 'Terraform action, plan or apply', name: 'TFACTION',
      choices: ['plan','apply'].join('\n')),
    choice(description: 'It defines whether or not to have multi availability zone elasticSearch resource deployment, e.g: \'enable\' (for enable multiAZ) or \'disable\' (for disable multiAZ)', name: 'MULTIAZ',
      choices: ['enable','disable'].join('\n')),
    string(description: 'It defines the elasticSearch name , e.g: apm, telemetry, entitlements, etc.', name: 'NAME')
  ]),
  disableConcurrentBuilds(),
  [$class: 'ChoiceParameter', choiceType: 'PT_RADIO', description: 'test_ac',
    filterLength: 1, filterable: false, name: 'test_ac',
    randomName: 'choice-parameter-1683871426502398',
    referencedParameters: 'MULTIAZ',
    script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false,
    script: '''\n
        if (MULTIAZ.equals('disable')){
            return['2','3','4','6','8','9']
        }
    ''']]
  ],
  [$class: 'BuildDiscarderProperty', strategy: [ $class: 'LogRotator', numToKeepStr: '20']]
]
basically, when multiAZ parameters have been chose to 'disable', the reactive choice will return the list of given number
Kalby Imanie
@kalbyimanie
since reactive choice is from active choice plugin, i wonder if it can be easily implemented or i need to make custom jenkins lib for it
but when i went to http://{jenkins-url}/pipeline-syntax to generate available jenkins pipeline syntax, the reactive choice is not there
i did install the plugin without restarting the jenkins. i am not sure if that really matters, cause even without restarting jenkins, i can still access the plugin via jenkins configure job UI
SergioSheldon
@SergioSheldon
Class RunWrapper in freestaly project?
Kalby Imanie
@kalbyimanie
pipeline style
[$class: 'org.biouno.unochoice.ChoiceParameter', name: 'MULTIAZ', choiceType: 'PT_RADIO', description: 'MULTIAZ',
    filterLength: 1, filterable: false,
    randomName: 'choice-parameter-47910233643731',
    script: [$class: 'org.biouno.unochoice.model.GroovyScript',
      script: [$class:'SecureGroovyScript',
      script:'''return ["MULTIAZ:selected", "disable", "beta", "enable"]'''
      ]
    ]
  ],
  [$class: 'org.biouno.unochoice.CascadeChoiceParameter', name: 'instanceCount ', choiceType: 'PT_RADIO', description: 'instanceCount',
   filterLength: 1, filterable: false,
   randomName: 'choice-parameter-51976913619136',
   referencedParameters: 'MULTIAZ',
   script: [$class: 'org.biouno.unochoice.model.GroovyScript',
      script: [$class:'SecureGroovyScript',
        script:'''if ("MULTIAZ".equals('disable')) { return ["2","3", "4", "6", "8"] }'''
      ],
    ]
  ]
got this error
java.lang.ClassCastException: org.biouno.unochoice.ChoiceParameter cannot be cast to hudson.model.JobProperty
SergioSheldon
@SergioSheldon
can i use RunWrapper in freestaly project like global variable?
vadivel1234
@vadivel1234

Hi Al,
Recently, my CI gets failed. when downloading nuget.exe from NuGet feed link. Is this a known issue?

15:10:36 Preparing to run build script...
15:10:36 -Message Trying to find nuget.exe in PATH...
15:10:36 -Message Downloading NuGet.exe...
15:10:37 Could not download NuGet.exe.
15:10:37 At E:\workspace\Trac\DTra\build\build.ps1:148 char:9
15:10:37 + Throw "Could not download NuGet.exe."
15:10:37 + ~~~~~~~~~
15:10:37 + CategoryInfo : OperationStopped: (Could not download NuGet.exe.:String) [], RuntimeException
15:10:37 + FullyQualifiedErrorId : Could not download NuGet.exe.

javilosada
@javilosada1_twitter
@Alena86 this works for me...
...
stage('4.Trigger checks APPS...') {
             steps {
             script {
                     echo "Triggering job for APPS"
                     build job: "check-apps", wait: false
                 }
             }
         }
...
peekyIL
@pattarika
Can we use pipeline on window slave?
Buamod
@Ibuamod_twitter
@pattarika yes you can
peekyIL
@pattarika
what's the new way to setup SSH Slaves in version 1.30.2? i restart window server, and now ssh key doesn't work
peekyIL
@pattarika
now it's just working...no idea what went wrong
peekyIL
@pattarika
how to push new files to git after jenkins job is success?
on window server ...
Gavin Mogan
@halkeye
git add && git commit && git push?
peekyIL
@pattarika
it doesn't work for Azure DevOps
peekyIL
@pattarika
how do you manage PATH/Path variable in jenkin configuration? Linux is master and Window is slave. All my job fails after I create a job to run on Window.
Matt Riley
@matthewriley
Hello, I can programmatically create multiple Jenkins agents using the Jenkins CLI jar but is there a programmatic way to either obtain the agent secret or a secure way to download the agent jnlp file (curl/wget)?
Alex Earl
@slide
@pattarika generally you would override certain things in the node setup
StolpSyS
@jstolp

Hello guys (and girls)

I have a problem after updating PHPUnit to 8.x with the JUnit plugin results, i've updated to the latest version, but alas... no succes

i works, but i still get warnings

phpunit:
[exec] PHPUnit 8.4.3 by Sebastian Bergmann and contributors.
[exec]
...
[exec] OK, but incomplete, skipped, or risky tests!
[exec] Tests: 5437, Assertions: 30371, Skipped: 28.

BUILD SUCCESSFUL
Total time: 9 minutes 44 seconds
Recording test results
INFO: Starting to record.
INFO: Processing JUnit
INFO: [JUnit] - 1 test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '/var/lib/jenkins/jobs/project/workspace' for the testing framework 'JUnit'.
WARNING: The file '/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml' is an invalid file.
WARNING: At line 3 of file:/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml:cvc-complex-type.3.2.2: Attribute 'assertions' is not allowed to appear in element 'testsuite'.

More of this....

WARNING: At line 7650 of file:/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml:cvc-attribute.3: The value '0.096055' of attribute 'time' on element 'testsuite' is not valid with respect to its type, 'SUREFIRE_TIME'.
WARNING: At line 7651 of file:/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml:cvc-complex-type.3.2.2: Attribute 'class' is not allowed to appear in element 'testcase'.
WARNING: At line 7651 of file:/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml:cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element 'testcase'.
WARNING: At line 7651 of file:/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml:cvc-complex-type.3.2.2: Attribute 'line' is not allowed to appear in element 'testcase'.
WARNING: At line 7651 of file:/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml:cvc-complex-type.3.2.2: Attribute 'assertions' is not allowed to appear in element 'testcase'.
WARNING: The result file '/var/lib/jenkins/jobs/project/workspace/build/logs/junit.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
INFO: Skipping tests recording.

Anybody has any idea what i'm doing wrong? the run for PHPUnit 7.x does produce the correct results, without warning
My Jenkins version: v2.205
JUnit plugin version: 1.28
StolpSyS
@jstolp

Ah... i just found the solution. If anyone is interested:

jenkinsci/xunit-plugin#78
sebastianbergmann/phpunit#3913

Martin Mosegaard
@mosegaardmartin_twitter
I am looking for good design ideas for standardizing pipelines across similar projects. One idea is to define a fixed pipeline lifecycle - say, "init - build - test - publish - deploy - " etc. Pipelines could then provide their own implementation of each stage, or choose which stages to opt in to. I am also looking at the ideas mentioned in "Defining a more structured DSL" and "Defining Declarative Pipelines" on this page: https://jenkins.io/doc/book/pipeline/shared-libraries/ - any suggestions appreciated!
Martin Mosegaard
@mosegaardmartin_twitter
I am new to this forum, so if there is a better place to ask, please let me know. Can't see a group concept here in Gitter?
Ben Dean
@b-dean

does anyone with a Bitbucket Branch Source using a team folder know of a way to add a multibranch pipeline build for a repo without doing a Organization Folder Scan?

we have a lot of repos and branches and it takes many many hours to scan (last time it died after 7 hours and it only had gotten to the letter ... c!)

Mike Fawcett
@HobNobblin
I'm trying to use the search api and cannot find much information on it. I am using /search/suggest?query=somejob which will return an array of suggestions. the issue I have is that for those jobs with spaces in them the string returned for the suggestion has spaces in it along with the other "jobs" in the path so trying to form a path to use is difficult. Are there any other search services for Jenkins?