continuous-integration

TFS 2017 - how to fail build when published Tests fail

谁都会走 提交于 2020-01-14 14:00:10
问题 I have a simple build process in TFS 2017 using CI/CD demo as described in https://msdn.microsoft.com/en-us/powershell/dsc/dsccicd The Build definition contains four steps: Run powershell script. As a part of the script, Pester tests are run on agent and results are saved to a folder using NUnit format Publish Test results using from that folder Copy files to staging directory Publish Artifacts When Pester test fails , I would like entire build to fail. At the moment build succeeds even when

Failed to install the following Android SDK packages as some licences have not been accepted

左心房为你撑大大i 提交于 2020-01-14 13:12:26
问题 I need to integrate a continuous integration system in my Android project, I have seen that CodeShip is a good alternative so I have created and configured a project to compile my Android application using the following script: # Install java 8 jdk_switcher home oraclejdk8 jdk_switcher use oraclejdk8 export JAVA8_HOME=/usr/lib/jvm/java-8-oracle export BUILD_TOOLS_VERSION=23.0.3 export ANDROID_SDK=24 export ANDROID_SDK_REV=24.4.1 # # Install android sdk export SDK_TAR=android-sdk_r$ANDROID_SDK

Failed to install the following Android SDK packages as some licences have not been accepted

我与影子孤独终老i 提交于 2020-01-14 13:12:17
问题 I need to integrate a continuous integration system in my Android project, I have seen that CodeShip is a good alternative so I have created and configured a project to compile my Android application using the following script: # Install java 8 jdk_switcher home oraclejdk8 jdk_switcher use oraclejdk8 export JAVA8_HOME=/usr/lib/jvm/java-8-oracle export BUILD_TOOLS_VERSION=23.0.3 export ANDROID_SDK=24 export ANDROID_SDK_REV=24.4.1 # # Install android sdk export SDK_TAR=android-sdk_r$ANDROID_SDK

Unable to Add Azure DB Firewall Rule to Allow Build Server to Run Tests

落花浮王杯 提交于 2020-01-14 08:55:29
问题 We use a Visual Studio Online-hosted build server to automate our build process. As part of this I'm looking into adding unit and integration tests into this process. These tests require access to our SQL Azure DBs (2 of them, both on the same server), which in turn requires access through the DB server's firewall. I have a PowerShell script which uses New-AzureRmSqlServerFirewallRule to add IP addresses to the DB server, and these firewall rules are successfully showing up in the Azure

Passing System Env variable into Jenkins Slave

ε祈祈猫儿з 提交于 2020-01-14 08:05:10
问题 This is starting to drive me crazy .. but it seems like I am out of luck to figure it out by myself :/ I need to set up a mechanism to share string value between two slaves, for example, named slave A and slave B . Currently most closest one I have found is this SO Question: Jenkins Slave Environment Variable Refresh But it still aims to enable access in buildscripts, not in the Slaves environment variable itself. (related SO Question: How are environment variables used in Jenkins with

Jenkins Pipeline having “Multiple candidate revisions” and is picking old one

走远了吗. 提交于 2020-01-14 07:47:33
问题 i have a Jenkins multibranch Pipeline configured which should fetch sources from a remote GIT repository for a build. Jenkins no seems to "randomly" pick an old commit for the build an showing the message "Multiple candidate revisions" in Build log files. My Pipeline is looking like: checkout( [ $class: 'GitSCM', branches: [[name: "release/0.0.1"]], doGenerateSubmoduleConfigurations: false, extensions: [ [$class: 'MessageExclusion', excludedMessage: '(?s)^\\[DOC\\] Robot.*'] ], submoduleCfg:

Using gcloud on Travis CI

南笙酒味 提交于 2020-01-14 05:15:07
问题 I have gcloud installed and working and a service account gets also activated. I run the following and get a success(?): $ gcloud auth activate-service-account "${GAE_CLIENT_ACCOUNT}" --key-file "${GAE_CLIENT_KEY_JSON_FILE}" Activated service account credentials for: [xxxxx@developer.gserviceaccount.com] Then I run this: $ gcloud preview app deploy app.yaml --project "${GAE_PROJECT_ID}" --quiet --version "${GAE_PROJECT_VERSION}" You are about to deploy the following modules: - ricochet-robots

C++ eclipse project automatic build server

感情迁移 提交于 2020-01-14 03:36:09
问题 I am building an embedded C++ project with eclipse. I want to set-up a continuous integration system where a build server would compile and run unit tests each time a commit is made to the github repo. My problem is that the C++ project uses eclipse for development and I don't know how to automate a build with a .cproject/.project the same way you would do it with a makefile and a CI framework like TravisCI or Jenkins. I thought I about maybe using the "generate makefile" feature but I don't

App version always 0.0(0) after upload to fabric beta

浪尽此生 提交于 2020-01-14 03:33:25
问题 I have strange problem with app version in fabric beta. After executing task :app:crashlyticsUploadDistribution build uploaded successfully. Version name and version code are correct for build, but version in the list of uploaded builds is always 0.0(0).And after downloading, versions of this builds are correcting. Wrong versions displayed only on fabric. Update: For setting version name and code I'm using "com.gladed.androidgitversion" plugin : androidGitVersion { format '%tag%' } android {

Gradle not including FXML and images

戏子无情 提交于 2020-01-13 19:29:40
问题 I have been looking around for the proper way to include FXML and images in the build.gradle so that they are build into the jar. I have look here and tried it but it still does not work. Throws this error: java.lang.NullPointerException: inputStream is null. Here is the build.gradle (Github): group 'com.voidustries' version '1.0-SNAPSHOT' sourceSets { main { resources { srcDirs = ["src/main/java/com/voidustries/poly"] includes = ["gui/layoutForm.fxml"] } } } buildscript { repositories {