continuous-integration

Multiconfiguration / matrix build pipeline in Jenkins

帅比萌擦擦* 提交于 2020-01-23 06:16:20
问题 What is modern best practice for multi-configuration builds (with Jenkins)? I want to support multiple branches and multiple configurations. For example for each version V1, V2 of the software I want builds targeting platforms P1 and P2. We have managed to set up multi-branch declarative pipelines. Each build has its own docker so its easy to support multiple platforms. pipeline { agent none stages { stage('Build, test and deploy for P1) { agent { dockerfile { filename 'src/main/docker

Best way to manage docker containers with supervisord

我怕爱的太早我们不能终老 提交于 2020-01-23 05:35:06
问题 I have to setup "dockerized" environments (integration, qa and production) on the same server (client's requirement). Each environment will be composed as follow: rabbitmq celery flower python 3 based application called "A" (specific branch per environment) Over them, jenkins will handle the deployment based on CI. Using set of containers per environment sounds like the best approach. But now I need, process manager to run and supervise all of them: 3 rabbit containers, 3 celery/flower

How to set path in azure-pipeline using prependpath

强颜欢笑 提交于 2020-01-23 03:49:05
问题 I am trying to set path in an Azure-pipeline using prepend path echo '##vso[task.prependpath]$(HOME)/miniconda3/bin' echo "New path 1... $PATH" ##vso[task.prependpath]($HOME)/miniconda3/bin echo "New path 3... $PATH" ##vso[task.prependpath]($env.HOME)/miniconda3/bin echo "New path 3... $PATH" ##vso[task.prependpath]$(env.HOME)/miniconda3/bin echo "New path 4... $PATH" ##vso[task.prependpath]$(env.home)/miniconda3/bin echo "New path 5... $PATH" ##vso[task.prependpath]$(home)/miniconda3/bin

How to retrieve Git commit id and message in VSTS/TFS build?

ⅰ亾dé卋堺 提交于 2020-01-22 15:35:07
问题 I'm in a CI environment using VSTS and I want to get the commit comment to set him into a text file. Here are my build step : The idea is to copy the GIT commit comment into a text file stored in the artifact folder. Then with the HockeyApp SDK, i'll set my commit comment in the relase note. I can easily copy the file with a command line operation, but I do not know how the retrieve the comment. 回答1: The environment variable $(Build.SOURCEVERSIONMESSAGE) is set during build. You can access it

How do I use PowerShell with Gitlab CI in Gitlab Pages?

隐身守侯 提交于 2020-01-22 14:30:51
问题 How do I use PowerShell commands/scripts with Gitlab CI in a .gitlab-ci.yml file which is used to deploy to gitlab pages? I am trying to execute the build.ps1 file from .gitlab-ci.yml , but when it reaches the build.ps1 line, it gives an error saying /bin/bash: line 5: .build.ps1: command not found I am trying to use the PowerShell script to convert a file in my repo and have the converted file deployed to gitlab pages using .gitlab-ci.yml Here is my code: .gitlab.yml pages: stage: deploy

npm test — --coverage never exits

自古美人都是妖i 提交于 2020-01-22 14:21:30
问题 I am using create-react-app to create a react application. When I executes npm test -- --coverage the test never exists. npm test actually runs react-scripts test . Any Idea? 回答1: -- --coverage part won't work, and should use one of the commands below to set CI to true . By default npm test runs the watcher with interactive CLI. However, you can force it to run tests once and finish the process by setting an environment variable called CI. source: React docs Windows (cmd.exe) set CI=true &&

npm test — --coverage never exits

折月煮酒 提交于 2020-01-22 14:21:14
问题 I am using create-react-app to create a react application. When I executes npm test -- --coverage the test never exists. npm test actually runs react-scripts test . Any Idea? 回答1: -- --coverage part won't work, and should use one of the commands below to set CI to true . By default npm test runs the watcher with interactive CLI. However, you can force it to run tests once and finish the process by setting an environment variable called CI. source: React docs Windows (cmd.exe) set CI=true &&

How to run QUnit tests from command line?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-22 13:55:25
问题 I recently started working on a Rails app that has a large amount of QUnit tests already in place for testing ember. I have been charged with the task of setting the app with a CI (I decided to use CodeShip). The issue I currently face is that the only way for me to run the qunit tests is to go to http://localhost:3000/qunit . I need to setup a way to run the tests from the command line. I have done a large amount of research, and have tried at least 10 different solutions but non have

Jenkins security - hide all screens unless user is logged in

我怕爱的太早我们不能终老 提交于 2020-01-22 04:56:05
问题 I don't know why "logged in users can do anything" means Jenkins will happily allow non-authenticated users to view project details and access artifacts... Regardless, I need to know how to get Jenkins to allow logged in users to to anything AND hide EVERYTHING for users who AREN'T logged in. Help please? 回答1: This can be done with the Role-Strategy plugin. Install the plugin, add a new group called "Anonymous" and uncheck everything. Then you want to add another group called "authenticated"

loader constraint violation [duplicate]

不问归期 提交于 2020-01-20 04:27:04
问题 This question already has answers here : java.lang.LinkageError: javax.servlet.jsp.JspApplicationContext.getExpressionFactory (6 answers) Closed 3 years ago . I encountered the problem of having the same .jar (for my case, el-api.jar v2.1)twice for one project, hence, the following error stack when I try to run my project using Tomcat 6. WARNING: Unexpected error forwarding to login page javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving