How can I trigger another job from a jenkins pipeline (jenkinsfile) with GitHub Org Plugin?

How can I trigger build of another job from inside the Jenkinsfile? I assume that this job is another repository under the same github organization, one that already has its own Jenkins file. I also want to do this only if the branch name is master, as it doesn’t make sense to trigger downstream builds … Read more

What is the JUnit XML format specification that Hudson supports?

I have Hudson as continuous integration server and I want to use option ‘Publish JUnit test result report’. But I don’t use xUnit tools for testing, instead of that i have shell scripts which run tests and return results in simple format. I am thinking to make a script which transforms these results to the … Read more

Jenkins: Can comments be added to a Jenkinsfile?

Are comments possible in a Jenkinsfile? If so, what’s the syntax? I am using the declarative pipeline syntax. I want to comment out the “post” section below until my SMTP server is working. pipeline { agent { label ‘docker-build-slave’ } environment { IMAGE = ‘registry.gitlab.com/XXXXX/bible-server’ DOCKER_REGISTRY_CREDENTIALS = credentials(‘DOCKER_REGISTRY_CREDENTIALS’) } options { timeout(10) } stages { … Read more

How to set environment variables in Jenkins?

I would like to be able to do something like: AOEU=$(echo aoeu) and have Jenkins set AOEU=aoeu. The Environment Variables section in Jenkins doesn’t do that. Instead, it sets AOEU=’$(echo aoeu)’. How can I get Jenkins to evaluate a shell command and assign the output to an environment variable? Eventually, I want to be able … Read more

Jenkins vs Travis-CI. Which one would you use for a Open Source project? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago. Improve this question For my project I need to choose between Jenkins and Travis-CI. I’ve been using Jenkins for … Read more