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 2019 22:50
    batmat review_requested #3874
  • Jan 31 2019 21:29
    basil opened #3875
  • Jan 31 2019 18:18
    nisarg1499 opened #3874
  • Jan 31 2019 18:12
    nisarg1499 edited #3873
  • Jan 31 2019 18:04
    nisarg1499 edited #3873
  • Jan 31 2019 18:03
    nisarg1499 opened #3873
  • Jan 31 2019 15:53
    batmat synchronize #3865
  • Jan 31 2019 15:24
    jglick commented #3861
  • Jan 31 2019 15:18
    nisarg1499 closed #3863
  • Jan 31 2019 15:18
    nisarg1499 commented #3863
  • Jan 31 2019 15:13
    oleg-nenashev commented #3863
  • Jan 31 2019 15:11
    nisarg1499 reopened #3863
  • Jan 31 2019 15:11
    nisarg1499 closed #3863
  • Jan 31 2019 15:01
    nisarg1499 synchronize #3863
  • Jan 31 2019 14:54
    batmat synchronize #3865
  • Jan 31 2019 14:45
    batmat synchronize #3865
  • Jan 31 2019 14:16
    Wadeck closed #3805
  • Jan 31 2019 14:12
    pjanouse commented #3802
  • Jan 31 2019 14:12
    pjanouse commented #3802
  • Jan 31 2019 14:05
    pjanouse synchronize #3802
kkurasz1
@kkurasz1
Is there an easy way to figure out what happened to a job that is suddenly missing? I have a job that disappeared sometime in the last 3 days. I'm wondering if anyone accidentally renamed it, or deleted it. ThinBackup plugin has a copy of the job and its configuration (RIP job history) but I'd kind of like to know what happened and am open to suggestions.
nvm, found the link to deleted jobs using the JobConfigHistory plugin
kkurasz1
@kkurasz1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@vinfang (vince) posted in env.BUILD_URL is null - https://community.jenkins.io/t/env-build-url-is-null/4805/1
wabmca
@wabmca
Hi,
parameters{
    string(name: 'ANSIBLE_BRANCH', defaultValue: '4.31_rc', description: 'Git branch for SnapInfraPlatform repo')
    [$class: 'ChoiceParameter', choiceType: 'PT_SINGLE_SELECT',   name: 'Env', script: [$class: 'GroovyScript', fallbackScript:         [classpath: [], sandbox: false, script: 'return ["ERROR"]'], script: [classpath: [], sandbox: false,
    script:  env]]]
    [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT',name: 'aws_region', referencedParameters: 'Env', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: 'return ["error"]'], script: [classpath: [], sandbox: false, script: items]]]
    string(name: 'APP_VERSION', defaultValue: 'develop-xxxx', description: 'Application Container version')
    choice(name: 'RELEASE_TYPE', choices: 'select\nMonthly\nGA', description: 'Please select the release type? Monthly or GA')
}
In this Code I want ChoiceParameters, I'm getting error: WorkflowScript: 64: Build parameters cannot be defined as maps.
I'm not sure what's wrong here... Please help!
halkeye
@halkeye:g4v.dev
[m]
@wabmca: first step is probably remove each parameter until you find the one that is breaking. That's way too much to skim though
wabmca
@wabmca
Okay @halkeye:g4v.dev
wabmca
@wabmca
@halkeye:g4v.dev
parameters{
    [$class: 'ChoiceParameter', choiceType: 'PT_SINGLE_SELECT',   name: 'Env', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: 'return ["ERROR"]'], script: [classpath: [], sandbox: false,
    script:  env]]]
    [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT',name: 'aws_region', referencedParameters: 'Env', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: 'return ["error"]'], script: [classpath: [], sandbox: false, script: items]]]
}
Error remained same:
WorkflowScript: 60: Build parameters cannot be defined as maps @ line 60, column 9.
[$class: 'ChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'Env', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: 'return ["ERROR"]'], script: [classpath: [], sandbox: false,
^
0xxy
@0xxy
image.png
image.png
image.png
hey, i have this issue in Jenkins and this programm doesn't want do to anything on my compurer. After configure item i always have the issue: JSONObject["scm"] is not a JSONObject. And if i want to change smth in configuration jenkins: Request processing error. Maybe someone can help?
halkeye
@halkeye:g4v.dev
[m]
@0xxy: I'm guessing one of your plugins is using outdated JavaScript. Recommend updating them
@wabmca: it seems to be erroring at the section that has script: []. Do you need that part? I've never used a choice parameter plugin
0xxy
@0xxy

@0xxy: I'm guessing one of your plugins is using outdated JavaScript. Recommend updating them

@halkeye:g4v.dev Do you mean jenkins plugin?

wabmca
@wabmca
@halkeye:g4v.dev yes its needed...
Team, Please help
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@Ashish posted in Webhook pipeline job Configuration with Jenkins and bitbucket - https://community.jenkins.io/t/webhook-pipeline-job-configuration-with-jenkins-and-bitbucket/4810/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@gennady-voronkov (Gennady Voronkov) posted in Run init container from vault-agent-inject first - https://community.jenkins.io/t/run-init-container-from-vault-agent-inject-first/4812/1
DoofusCanadensis
@kenrachynski:matrix.org
[m]
@wabmca: you haven’t given any of your parameters a name
wabmca
@wabmca
@kenrachynski:matrix.org Thanks for your response.. Can you please tell me how to give name?
DoofusCanadensis
@kenrachynski:matrix.org
[m]
2 replies
The documentation is pretty clear, I think
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@drproktor (Max Huber) posted in Random durable task step termination - https://community.jenkins.io/t/random-durable-task-step-termination/4816/1
Alex Earl
@slide-o-mix:matrix.org
[m]
Are you using the pipeline generator?
JrInfra
@JrInfra
Hi All, can you see why a build is happening even though there is a cron trigger?
Alex Earl
@slide-o-mix:matrix.org
[m]
The build log usually shows a cause I think
JrInfra
@JrInfra
Started by timer
but I have a cron trigger for later this month so it makes no sense why it ignored it
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@RobMeades posted in Managing a shared resource across a [scripted pipeline] Jenkinsfile - https://community.jenkins.io/t/managing-a-shared-resource-across-a-scripted-pipeline-jenkinsfile/4817/1
JrInfra
@JrInfra
anything that could be causing it to ignore?
Callek
@jwood:mozilla.org
[m]

So in a pipeline I have the following

        sh '''
            ./bin/someServerBinary &
            export PID=$!
            sleep 2
            # doSomethingWithServerActive
            kill $hugoPID
            # doSomethingWithoutServerActive
        '''

I'm getting an abort on the pipeline though perhaps due to the exit code from SomeServerBinary and I'm not sure why or how to solve, any suggestions?

1 reply
Callek
@jwood:mozilla.org
[m]
Thanks, I just went to test locally on the docker image I use and I noticed that one of the # DoSomethingWithServerActive is failing that I totally didn't expect
and it failed with no output, so that's whats going on
hichhiker
@hichhiker:matrix.org
[m]
start with adding set +e as first line and see if it still breaks. - to be clear it is NOT a solution, error breakage is there for a reason - but worth troubleshooting to confirm if it is the right thing
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@uncowandy (Randy) posted in Git Clone Fails in Powershell Script During Jenkins Build - https://community.jenkins.io/t/git-clone-fails-in-powershell-script-during-jenkins-build/4820/1
DoofusCanadensis
@kenrachynski:matrix.org
[m]
noping right out of this one
hichhiker
@hichhiker:matrix.org
[m]
LOL
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@RobMeades posted in Run something when Jenkins is idle - https://community.jenkins.io/t/run-something-when-jenkins-is-idle/4822/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@kahhuitee posted in Slow multibranch pipeline scan - https://community.jenkins.io/t/slow-multibranch-pipeline-scan/4825/1
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@BaruchG (Baruch) posted in See stderr message of build script - https://community.jenkins.io/t/see-stderr-message-of-build-script/4828/1
elife1
@elife1
Hello, i want to integrate jenkins with k8s by kubernetes plugin, but when i'm confguring clouds i have such an error Error testing connection https://url:port: java.net.SocketTimeoutException: connect timed ou
wabmca
@wabmca

Hi team,

parameters{
[$class: 'ChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'Env', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: 'return ["ERROR"]'], script: [classpath: [], sandbox: false,
script: env]]]
[$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT',name: 'aws_region', referencedParameters: 'Env', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: 'return ["error"]'], script: [classpath: [], sandbox: false, script: items]]]
}

I wanna use Active choice parameter plugin using above code. I'm getting below error. I'm blocked since week please help!

WorkflowScript: 60: Build parameters cannot be defined as maps @ line 60, column 9.
[$class: 'ChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'Env', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: 'return ["ERROR"]'], script: [classpath: [], sandbox: false,
^

Lior Azroel
@lior_azroel_gitlab
Hey all, someone know how to archive artifact of build even if build is with timeout I tried with always but didn't work?
meaning:
post {
always{
....................
}
}
community-jenkins-io
@community-jenkins-io:matrix.org
[m]
@nrangava posted in Dynamic pipeline generation - https://community.jenkins.io/t/dynamic-pipeline-generation/4832/1