jenkins-blueocean

Pipeline editor unable to open Jenkinsfile in Jenkins BlueOcean

社会主义新天地 提交于 2019-12-22 13:33:06
问题 I am extremely new to BlueOcean and am getting the below error when trying to open the pipeline editor: There was an error loading the pipeline from the Jenkinsfile in this repository. Correct the error by editing the Jenkinsfile using the declarative syntax then commit it back to the repository. Cannot read property 'indexOf' of undefined Jenkinsfile : pipeline { agent any stages { stage('Build') { steps { echo 'Building..' } } stage('Test') { steps { echo 'Testing..' } } stage('Deploy') {

Pipeline editor unable to open Jenkinsfile in Jenkins BlueOcean

对着背影说爱祢 提交于 2019-12-22 13:31:09
问题 I am extremely new to BlueOcean and am getting the below error when trying to open the pipeline editor: There was an error loading the pipeline from the Jenkinsfile in this repository. Correct the error by editing the Jenkinsfile using the declarative syntax then commit it back to the repository. Cannot read property 'indexOf' of undefined Jenkinsfile : pipeline { agent any stages { stage('Build') { steps { echo 'Building..' } } stage('Test') { steps { echo 'Testing..' } } stage('Deploy') {

Jenkins Blue Ocean: Maven doesn't see Java

南楼画角 提交于 2019-12-22 11:59:33
问题 I'm getting the error "/var/jenkins_home/tools/hudson.model.JDK/jdk8/bin/java: not found:" even though the path exists: [edi-debatcher_master-LNI22Y2C5V3VECCBCFPVB3ZUWJJNMLK6LIFEQ6V3OYH52T74NU3A@2] Running shell script + echo PATH = /var/jenkins_home/tools/hudson.model.JDK/jdk8/bin:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.5.3/bin:/var/jenkins_home/tools/hudson.model.JDK/jdk8/bin:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.5.3/bin:/usr/local

Jenkins blue ocean change github access token

不打扰是莪最后的温柔 提交于 2019-12-22 04:32:42
问题 Jenkins blue ocean pretty cool continuous integration tool, but I faced the following problem: At the main page, as was asked, I inserted my GitHub access token And after that I realized that was incorrect token from another company. And now I want to change to another token but there is no option to do that. I'm always getting the following screen without the possibility to change the key. I found out that if I the token was deleted from GiHub tokens page I can insert the new one at the page

Matrix configuration with Jenkins pipelines

断了今生、忘了曾经 提交于 2019-12-18 10:50:55
问题 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

Pipeline to use artifacts from 2 projects associated by the same git branch name

元气小坏坏 提交于 2019-12-13 02:58:18
问题 the company where I work for is evaluating jenkins 2.71, in particular the pipeline and blue ocean plugins. We already tested also GoCD and we need, as in GoCD , a way for a pipeline to automatically fetch the artifacts from 2 other pipelines (taking the last successful result of each one of them), here our case. We have these initial pipelines (build & run tests), which reflect 2 projects: frontend , ~ 15 minutes backend , ~10 minutes I created a pipeline called configure (~1 minute), with e

Jekins sh label: Arguments to “sh” must be explicitly named

北城余情 提交于 2019-12-13 02:49:17
问题 I'm aware of Jenkins Pipeline sh display name/label But when using sh "echo foo", label: "my step" I'll get the following error: Arguments to "sh" must be explicitly named I made sure to have Pipeline: Nodes and Processes v2.28 installed and I'm using a declarative pipeline. 回答1: I found it out myself, it must be: sh script: "echo foo", label: "my step" 来源: https://stackoverflow.com/questions/54787285/jekins-sh-label-arguments-to-sh-must-be-explicitly-named

How to disable Branch Indexing?

隐身守侯 提交于 2019-12-11 15:39:47
问题 I have tests that can only run in serial. This is because they're rspec tests that use a database. If multiple jobs are running at the same time, they'll all be using the same database and creating a conflict. However, sometimes when I commit to my Github pull request Jenkins will correctly kick off a test job. However, it will also kick off another duplicate job with the message "Branch Indexing". These jobs can't run at the same time or the tests will break. Additionally, these jobs take 20

Jenkins Blueocean - same Jenkinsfile across multiple environments while passing different values of environment variables

廉价感情. 提交于 2019-12-11 07:39:24
问题 I do not want to put my environment variables in the source code, i know we can add variables in Jenkinsfile. How can i pass environment variable via the Jenkins job/UI while using Jenkins Blueocean? This needs to be done in a way so that I can use same Jenkinsfile across multiple environments while passing different values of environment variables. 来源: https://stackoverflow.com/questions/46291750/jenkins-blueocean-same-jenkinsfile-across-multiple-environments-while-passing

Jenkins Blue Ocean Provide Credentials for Subversion SCM Step

我怕爱的太早我们不能终老 提交于 2019-12-11 06:09:09
问题 I set up a Jenkins(all recommented plugins) on a plain WIN10-VM to test if the Blue Ocean plugin is an option for me and my colleagues to simply build setups. In Addition I set up a local Git-Server (Bonobo) to store the Jenkinsfile for BlueOcean (SVN is actually not supported). I created a new pipeline in Blue Ocean. As one of the first step I wanted to checkout the source via subversion. I created a subversion step and filled in the url of the repository and checked the poll option. Now I