jenkins-blueocean

Jenkins Pipeline sh display name/label

穿精又带淫゛_ 提交于 2019-12-02 18:58:33
With Jenkins 2 Pipeline plugin, there's a useful feature allowing a quick overview of the pipeline stages and status of steps, including logging output. However, if you use the "Shell script" (sh) step, there doesn't seem to be a way to label that script with a useful name, so the display merely shows a long list of "Shell Script" (shown in the image below). How can I assign a useful name, or how can I use some other step to accomplish the same effect? Update Feb 2019 : According to gertvdijk's answer below , it is now possible to assign an optional label to the sh step , starting from v2.28,

How to execute SonarQube scanner in Jenkins Declarative Pipeline without Maven and Docker

无人久伴 提交于 2019-12-01 13:03:21
Does SonarQube scanner support BlueOcean pipeline plugin without maven and docker, if it does how does the script works in Jenkinsfile? I'm new to Jenkins and BlueOcean and have tried all the basic possible aspects available. If the SonarQube plugin did support Declarative: pipeline { agent any stages { stage('SonarQube analysis') { tools { sonarQube 'SonarQube Scanner 2.8' } steps { withSonarQubeEnv('SonarQube Scanner') { sh 'sonar-scanner' } } } } } We cannot say that the SonarQube scanner supports or does not support BlueOcean . BlueOcean is a presentation layer which displays data provided

Matrix configuration with Jenkins pipelines

放肆的年华 提交于 2019-11-30 00:02:53
The Jenkins Pipeline plugin (aka Workflow) can be extended with other Multibranch plugins to build branches and pull requests automatically. What would be the preferred way to run multiple configurations? For example, building with Java 7 and Java 8. This is often called matrix configuration (because of the multiple combinations such as language version, framework version, ...) or build variants. I tried: executing them serially as separate stage steps. Good, but takes more time than necessary. executing them inside a parallel step, with or without node s allocated inside them. Works but I