continuous-deployment

How to setup Jenkins with JUnit

独自空忆成欢 提交于 2019-11-29 11:59:59
We have a JUnit test suite that we usually run from Eclipse. We have recently started a process of trying to get a better development environment. As part of this we have started building our project in Jenkins . We would also like it if it was possible to run the JUnit test suite during our build. To do this I think we need a way to execute the test suite from command line so that we can integrate them in Jenkins and parse their output. How can we set up Jenkins to run our tests? Michael Laffargue You could create a junit ant task during your build and let Jenkins run that task Here are some

How are snapshot and release repositories used differently?

江枫思渺然 提交于 2019-11-29 03:02:46
问题 I understand that during development build artifacts are placed in the snapshot repository. When a product needs to go to QA for testing, do teams pull from the snapshot repository? Or do they do a full build, deploy to the release repository, and then give it to QA from there? Also, if my snapshots repository holds all the build artifacts from each build, how is this commonly cleaned up? I could see keeping the last 5 builds from the build server, but not every one. I'm using Artifactory if

android environment using docker and bitbucket pipelines

坚强是说给别人听的谎言 提交于 2019-11-28 20:09:19
问题 I am very new to Bitbucket pipelines (Beta) and docker.No previous experience on CI integration I followed this question , But no clear description for beginners I am trying to set up Continuous Integration (CI) in Bitbucket Pipelines for Android Project using docker container I want to use my previous android project with this container Steps I followed Step 1 . Installed Docker Software tools . Successfully installed. Step 2 . Created Virtual Machine Successfully Step 3 . Created container

How to upload an APK from Jenkins/Hudson to Play Store?

谁说胖子不能爱 提交于 2019-11-28 18:48:57
I implemented a continuous integration pipeline using Jenkins, but as final step I want Jenkins to deploy/upload the signed APK file to Google Play Store and AndroidPit. I looked for Jenkins/Hudson plugins but only found two: one for Appaloosa and one for Zubhium. I have a working developer account both on Google Play and on AndroidPit and can manually upload the APK that Jenkins produces. But my question is: Does anybody know a way to teach Jenkins (e.g. via a shell script?) to upload the APK to the mentioned app stores? twaddington There is a Google Play Android Publisher plugin for Jenkins

How do you abort/end a Chef run?

我怕爱的太早我们不能终老 提交于 2019-11-28 14:44:10
问题 Under certain conditions, I need to abort/end a Chef run with a non-zero status code, that will then propagate back through our deployment chain and eventually to Jenkins resulting in a big, fat red ball. What is the best way to do this? 回答1: For the readers coming to this question and answer in the future that may not be familiar with Chef, a Chef run "converges" the node, or brings it in line with the policy declared in the recipe(s) it is running. This is also called "convergence." This

How to setup Jenkins with JUnit

被刻印的时光 ゝ 提交于 2019-11-28 06:05:07
问题 We have a JUnit test suite that we usually run from Eclipse. We have recently started a process of trying to get a better development environment. As part of this we have started building our project in Jenkins . We would also like it if it was possible to run the JUnit test suite during our build. To do this I think we need a way to execute the test suite from command line so that we can integrate them in Jenkins and parse their output. How can we set up Jenkins to run our tests? 回答1: You

Continuous Integration vs. Continuous Delivery vs. Continuous Deployment

我们两清 提交于 2019-11-27 16:33:17
What's the difference between these three terms? My university provides the following definitions: Continuous Integration basically just means that the developer's working copies are synchronized with a shared mainline several times a day. Continuous Delivery is described as the logical evolution of continuous integration: Always be able to put a product into production! Continuous Deployment is described as the logical next step after continuous delivery: Automatically deploy the product into production whenever it passes QA! They also provide a warning: Sometimes the term "Continuous

How to deploy to Heroku directly from my Gitlab repository

假装没事ソ 提交于 2019-11-27 10:20:21
问题 In my team, we use Gitlab as a remote repository, so we are looking for a solution to auto deploy our apps to Heroku. We found Codeship for auto deploying apps to Heroku from Github. Any tips? Tricks? 回答1: If you are not prepared to use Ruby/dpl you can deploy to Heroku as follows: Look up your Heroku API key (Account settings -> API Key on the Heroku web console) and make it available as a Gitlab secret variable e.g. HEROKU_API_KEY (Please note the values is not the same as what heroku auth

How to trigger Jenkins builds remotely and to pass parameters

泄露秘密 提交于 2019-11-26 19:50:17
I am invoking a Jenkins job remotely using: wget http://<ServerIP>:8080/job/Test-Jenkins/build?token=DOIT Here Test-Jenkins job is invoked and DOIT is the security token that I have used. Now I need to pass some parameters to the build.xml file of this job i.e. Test-Jenkins . I have not yet figured out how to pass the variables yet. Peter Schuetze See Jenkins documentation: Parameterized Build Below is the line you are interested in: http://server/job/myjob/buildWithParameters?token=TOKEN&PARAMETER=Value Zacky Pickholz To trigger a build with own/custom parameters, invoke the following URL

How to trigger Jenkins builds remotely and to pass parameters

跟風遠走 提交于 2019-11-26 06:30:50
问题 I am invoking a Jenkins job remotely using: wget http://<ServerIP>:8080/job/Test-Jenkins/build?token=DOIT Here Test-Jenkins job is invoked and DOIT is the security token that I have used. Now I need to pass some parameters to the build.xml file of this job i.e. Test-Jenkins . I have not yet figured out how to pass the variables yet. 回答1: See Jenkins documentation: Parameterized Build Below is the line you are interested in: http://server/job/myjob/buildWithParameters?token=TOKEN&PARAMETER