continuous-integration

Jenkins “run only if build succeeds” still runs for unsuccessful builds

↘锁芯ラ 提交于 2020-01-13 10:08:03
问题 I'am using Jenkins for continuous integration and I have some projects having upstream and downstream build connections. I have selected Run only if build succeeds in each project's configuration. However, the post-build step is still getting triggered for unstable builds. Jenkins version is 1.480.3 . I wonder if is there anyone having a similar experience. Thanks in advance 回答1: This is an existing issue in Jenkins 1.480.3. It got resolved 1.509.1. The link of jira is as follows. https:/

Jenkins “run only if build succeeds” still runs for unsuccessful builds

百般思念 提交于 2020-01-13 10:07:11
问题 I'am using Jenkins for continuous integration and I have some projects having upstream and downstream build connections. I have selected Run only if build succeeds in each project's configuration. However, the post-build step is still getting triggered for unstable builds. Jenkins version is 1.480.3 . I wonder if is there anyone having a similar experience. Thanks in advance 回答1: This is an existing issue in Jenkins 1.480.3. It got resolved 1.509.1. The link of jira is as follows. https:/

converting an eclipse formatter file to a checkstyle file

 ̄綄美尐妖づ 提交于 2020-01-13 08:31:12
问题 I have an eclipse formatting file (which contains some configurations) and i want to make the same thing (these configurations) for a checkstyle file to use after with maven build. 回答1: Unfortunately, there is no way to convert a formatter file to a checkstyle ruleset at the moment. You have to do it the other way around as explained here. Otherwise you have to adjust every setting in your formatter manually for checkstyle. 回答2: The Eclipse-Checkstyle plugin provides an export feature to

use svn revision number in application version

此生再无相见时 提交于 2020-01-13 08:28:08
问题 In a VS2010 solution (not .NET), I'm looking to include the svn revision number as part of the application version. we do not use makefiles at the moment, only the VS solution/project settings. I'd like to get the working copy revision number at compile time, store it into a variable, so it can be used later on in the code to display the version number. So far, I've successfully used svnversion to get the latest version of the working copy as a pre-built event . "C:\Program Files\CollabNet

Maven replacement?

…衆ロ難τιáo~ 提交于 2020-01-13 02:56:11
问题 What would you suggest as a replacement to the Maven Java build toolset? Just plain Ant scripts? SCons? 回答1: While I like the idea of Maven, I always find myself fighting it for anything but the simplest configurations. Its architecture is plugin-based, and the quality of the plugins varies widely. Documentation is sketchy at best; half the time I can't figure out if the doc I'm reading is for Maven 1 or 2. And how often have you had to resort to using the maven-ant-plugin to do something

Connect Github to secured Jenkins via HTTP Post-Commit Hook

南楼画角 提交于 2020-01-12 05:17:07
问题 I have set up Jenkins with the Github plugin on my test server. I have secured Jenkins by only allowing authenticated users (anonymous users don't have any rights) and secure connections. Unfortunately the post-commit hook offered by Github doesn't seem to work in my case. I've tried to access the URL at https://jenkins.on.my.server/github-webhook/ manually and it gave me a "net.sf.json.JSONException: null object" error, which is fine since I didn't post any JSON along with my request. My

Stategies for coping with schema evolution? [closed]

可紊 提交于 2020-01-11 19:50:25
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Currently we're using hand-rolled SQL in Data-Access objects and a lot of stored-procedures and triggers which amount to around 20k lines of code. We're finding that simple changes are causing a couple of days' work to fix, and its causing deadlines to slip. Changes include

Stategies for coping with schema evolution? [closed]

爷,独闯天下 提交于 2020-01-11 19:48:38
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Currently we're using hand-rolled SQL in Data-Access objects and a lot of stored-procedures and triggers which amount to around 20k lines of code. We're finding that simple changes are causing a couple of days' work to fix, and its causing deadlines to slip. Changes include

Gitlab CI deploy AWS EC2

ⅰ亾dé卋堺 提交于 2020-01-11 12:33:33
问题 we have a lumen application we move the project to GitLab we wanna pull the project if all is ok. We add the two scripts: .gitlab-ci.yml: variables: - All or variables stages: - test - production testing: type: test image: php:7.1 script: - echo "ok" #Production stage production: stage: production before_script: - mkdir -p ~/.ssh - echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'

Downstream Jenkins project gets wrong upstream run parameter

对着背影说爱祢 提交于 2020-01-11 10:57:09
问题 I'm having a problem with a Jenkins build pipeline. All jobs after the first one are parameterized with the "Run Parameter" of the first job. By default, this should reference the most recent stable build of the first job. Each subsequent job uses the "Run Parameter" of the first job to access saved artifacts from the first job. Each subsequent job triggers the next job of the pipeline as a parameterized build and passes the aforementioned "Run Parameter". The first job of the pipeline