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
Sami Korhonen
@skorhone
Is there by any chance any on-going effort on creating a pipeline step that allows passing command line arguments (to prevent command injection) safely to a shell step & externalize the script file? (while typing this, I just realized, that I could do something similar with combination of env-variables and writing the script file from resources to a temp file)
Vasco Santos
@jvosantos
Hello, I'm using jenkins with kubernetes plugin and I'm noticing that no matter what changes I make to the podtemplate, those changes don't get merged with the podtemplate defined in the local Jenkinsfile. Could anyone point me where I can further debug this? Is there a place that plugins log stuff?
Sami Korhonen
@skorhone
Not sure if anyone else is worried about script input escaping, but if you are then you might find https://github.com/samlink-devops/jenkins-pipeline-examples/blob/master/vars/safeSh.groovy useful.
Martin Cech
@martenson
Hi all, has anybody seen jobs being stuck/superslow immediately after the start of execution? Console freezes at second line in the following gist for minutes and then progresses through the next lines for hours before it even starts cloning. This is transient, other identical jobs run fine.
GitHub pull request #8502 of commit fb98cf3585100ea72bffefd47d7a536a8e773401, no merge conflicts.
Running as SYSTEM
Setting status of fb98cf3585100ea72bffefd47d7a536a8e773401 to PENDING with url https://jenkins.galaxyproject.org/job/docker-api/16927/ and message: 'Test started.'
Using context: api test
[EnvInject] - Loading node environment variables.
Building remotely on n2.galaxyproject.org (psu_node doc_builder docker_worker) in workspace /var/jenkins/workspace/docker-api
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
William Hetherington
@willwh
hmmhhmhm... @slide I'm curious if you've got something like this in your declarative pipelines?
pipeline {
    agent { label 'windows' }
    stages {
        stage('Deploy') {
            agent { label 'windows' }
            steps {
                script {
                    def proceed = true
                    try {
                        timeout(time: 15, unit: 'SECONDS') {
                            input {
                                message "Is this deployment allowed to continue?"
                                submitter "Deployment Group"
                                submitterParameter "APPROVER"
                                parameters {
                                    choice(
                                        name: 'TARGET_ENV',
                                        choices: "Dev\nTest\nProd",
                                        description: "Please choose an environment target"
                                    )
                                }
                            }
                        }
                    } catch (err) {
                        proceed = false
                    }
                    if(proceed) {
                        powershell "Write-Host Deployment to $env.TARGET_ENV just approved by $env.APPROVER"
                    }
                }
            }
        }
    }
}
doesn't seem to work; build just immediately succeeds
bleh
or anyone else got something like this working in a declarative pipeline? :)
oh, this is probably one for the pipeline-authoring-sig
Tyler
@engineertdog
Hi, I have just a quick question about running Jenkins on K8S. I installed via the stable helm chart, and it's working all well except for one aspect. I'm trying to serve Jenkins over port 443 for SSL of course. This works, but Jenkins tries to go to http://domain instead of https://domain on login, or when trying to make pipelines, etc. Any suggestions?
The stable chart is https://github.com/helm/charts/tree/master/stable/jenkins, and I set master.servicePort to 443, and master.jenkinsUrlProtocol to https
mayank srivastava
@mighty_1989_twitter
HI All,
Getting InterruptedException in pipeline build especially when the pipeline stage has multiple parallels components?
any idea how to fix this
this happens 1 in every 7 build
Patrick Housley
@patrickhousley
Can you provide a log @mighty_1989_twitter
mayank srivastava
@mighty_1989_twitter
@patrickhousley pipeline log ? or slave logs because when I see slave I don't see anything unusual there.
Patrick Housley
@patrickhousley
pipeline log
mayank srivastava
@mighty_1989_twitter
pipeline i am using a non-cps method
Patrick Housley
@patrickhousley
It would be easier to help if I could see the pipeline log with the error
mayank srivastava
@mighty_1989_twitter
[Pipeline] [Build on Linux] deleteDir
[Pipeline] [Build on Linux] echo
[Build on Linux] Build on Linux is done
[Pipeline] [Build on Linux] }
[Pipeline] [Build on Linux] // ws
[Pipeline] [Build on Linux] }
[Pipeline] [Build on Linux] // node
[Pipeline] [Build on Linux] }
[Build on Windows] Cannot contact <windows machine name >: java.lang.InterruptedException
Aborted by xxxxx
[Build on Windows] Sending interrupt signal to process
[Build on Windows] After 10s process did not stop
[Pipeline] [Build on Windows] }
space onn windows is ample compute power is super high
pipeline got stuck for more than 9 hours
here
until aborted
if you want i can share jenkinsfile
Patrick Housley
@patrickhousley
sure
but I wonder if that interruptedexception is not simply a result of you aborting the job
and ultimately you have a problem elsewhere in your pipeline
mayank srivastava
@mighty_1989_twitter
i think so
Patrick Housley
@patrickhousley
when you aborted the pipeline, what stage was it stuck in?
mayank srivastava
@mighty_1989_twitter
Build only
Patrick Housley
@patrickhousley
are you node ephemeral or static
mayank srivastava
@mighty_1989_twitter
i do build in parallel for both linux and windows
Patrick Housley
@patrickhousley
look like the linux build is finishing fine but the windows one is not, correct
mayank srivastava
@mighty_1989_twitter
what is meant by ephemeral or static , i didn't understood
yes
most of the times , windows give me the problem
Patrick Housley
@patrickhousley
are you using docker for your jenkins nodes
mayank srivastava
@mighty_1989_twitter
No
Patrick Housley
@patrickhousley
or a vm
mayank srivastava
@mighty_1989_twitter
standalone Physical Servers
Patrick Housley
@patrickhousley
does your windows node show up as disconnected in the master on occasion?
mayank srivastava
@mighty_1989_twitter
when i see slave logs i don't see any disconnection
slave is running as a service
Patrick Housley
@patrickhousley
ok, so whats the windows part of the pipeline look like
mayank srivastava
@mighty_1989_twitter
i'll share pipeline
dm
Patrick Housley
@patrickhousley
Ok