jenkins-pipeline

The same shell command behaves differently if it is located in different stages of Jenkins pipeline

有些话、适合烂在心里 提交于 2021-01-07 06:37:33
问题 I'm trying to execute following stage in Jenkins pipeline stage('RUN') { steps{ dir("airflow-dags") { sh "find ./volumes/dags/ -maxdepth 1 -name '*.py' -print0" } } } If this stage is located in the last position (after deploy and other stuff) it returns nothing: 08:56:58 Running in /home/jenkins/workspace/QA_deploy_Docker/airflow-dags [Pipeline] { [Pipeline] sh 08:56:59 + find ./volumes/dags/ -maxdepth 1 -name '*.py' -print0 [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage If

The same shell command behaves differently if it is located in different stages of Jenkins pipeline

浪子不回头ぞ 提交于 2021-01-07 06:37:14
问题 I'm trying to execute following stage in Jenkins pipeline stage('RUN') { steps{ dir("airflow-dags") { sh "find ./volumes/dags/ -maxdepth 1 -name '*.py' -print0" } } } If this stage is located in the last position (after deploy and other stuff) it returns nothing: 08:56:58 Running in /home/jenkins/workspace/QA_deploy_Docker/airflow-dags [Pipeline] { [Pipeline] sh 08:56:59 + find ./volumes/dags/ -maxdepth 1 -name '*.py' -print0 [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage If

Set a SonarQube webhook in Jenkinsfile

扶醉桌前 提交于 2021-01-04 14:55:19
问题 I'm trying to create a Jenkins multibranch pipeline where on every push to bitbucket, a SonarQube analysis is performed on that branch of the project. Jenkins correctly creates the new job for each branch and a new project is created in SonarQube with the branch name appended to the project name. The issue I'm having is that when SonarQube creates the new project, the webhook to report the Quality Gate status is not set by default, so I have to manually go into each SonarQube project and set

Set a SonarQube webhook in Jenkinsfile

天大地大妈咪最大 提交于 2021-01-04 14:55:09
问题 I'm trying to create a Jenkins multibranch pipeline where on every push to bitbucket, a SonarQube analysis is performed on that branch of the project. Jenkins correctly creates the new job for each branch and a new project is created in SonarQube with the branch name appended to the project name. The issue I'm having is that when SonarQube creates the new project, the webhook to report the Quality Gate status is not set by default, so I have to manually go into each SonarQube project and set

Jenkinsfile and multiple nodes

我怕爱的太早我们不能终老 提交于 2020-12-29 07:15:00
问题 I have some code that needs running (build, test, and packages in actuality but for example just running tox ) on different OSes. Currently my Jenkinsfile looks like thus: pipeline { // Where to run stuff. agent { node { label 'CentOS7' customWorkspace '/home/build/jenkins/workspace/pipelines/ook' } } // What to run goes here. stages { stage('Tox') { steps { sh 'tox -v --recreate' } } } // Clean up after ourselves. post { failure { mail subject: "\u2639 ${env.JOB_NAME} (${env.BUILD_NUMBER})

Jenkinsfile and multiple nodes

不羁的心 提交于 2020-12-29 07:14:00
问题 I have some code that needs running (build, test, and packages in actuality but for example just running tox ) on different OSes. Currently my Jenkinsfile looks like thus: pipeline { // Where to run stuff. agent { node { label 'CentOS7' customWorkspace '/home/build/jenkins/workspace/pipelines/ook' } } // What to run goes here. stages { stage('Tox') { steps { sh 'tox -v --recreate' } } } // Clean up after ourselves. post { failure { mail subject: "\u2639 ${env.JOB_NAME} (${env.BUILD_NUMBER})

Jenkinsfile and multiple nodes

时光毁灭记忆、已成空白 提交于 2020-12-29 07:13:11
问题 I have some code that needs running (build, test, and packages in actuality but for example just running tox ) on different OSes. Currently my Jenkinsfile looks like thus: pipeline { // Where to run stuff. agent { node { label 'CentOS7' customWorkspace '/home/build/jenkins/workspace/pipelines/ook' } } // What to run goes here. stages { stage('Tox') { steps { sh 'tox -v --recreate' } } } // Clean up after ourselves. post { failure { mail subject: "\u2639 ${env.JOB_NAME} (${env.BUILD_NUMBER})

Jenkinsfile and multiple nodes

瘦欲@ 提交于 2020-12-29 07:13:03
问题 I have some code that needs running (build, test, and packages in actuality but for example just running tox ) on different OSes. Currently my Jenkinsfile looks like thus: pipeline { // Where to run stuff. agent { node { label 'CentOS7' customWorkspace '/home/build/jenkins/workspace/pipelines/ook' } } // What to run goes here. stages { stage('Tox') { steps { sh 'tox -v --recreate' } } } // Clean up after ourselves. post { failure { mail subject: "\u2639 ${env.JOB_NAME} (${env.BUILD_NUMBER})

Jenkinsfile and multiple nodes

不想你离开。 提交于 2020-12-29 07:12:57
问题 I have some code that needs running (build, test, and packages in actuality but for example just running tox ) on different OSes. Currently my Jenkinsfile looks like thus: pipeline { // Where to run stuff. agent { node { label 'CentOS7' customWorkspace '/home/build/jenkins/workspace/pipelines/ook' } } // What to run goes here. stages { stage('Tox') { steps { sh 'tox -v --recreate' } } } // Clean up after ourselves. post { failure { mail subject: "\u2639 ${env.JOB_NAME} (${env.BUILD_NUMBER})

Jenkinsfile and multiple nodes

房东的猫 提交于 2020-12-29 07:12:48
问题 I have some code that needs running (build, test, and packages in actuality but for example just running tox ) on different OSes. Currently my Jenkinsfile looks like thus: pipeline { // Where to run stuff. agent { node { label 'CentOS7' customWorkspace '/home/build/jenkins/workspace/pipelines/ook' } } // What to run goes here. stages { stage('Tox') { steps { sh 'tox -v --recreate' } } } // Clean up after ourselves. post { failure { mail subject: "\u2639 ${env.JOB_NAME} (${env.BUILD_NUMBER})