Running Code Analysis (FxCop > 10) on build agent without installing Visual Studio

For FxCop 14.0 / VS2015 see this answer Run FxCop 12.0 without installing Visual Studio 2013 Okay, i’ve invested 6 hours and now it’s working. I’ve added all necessary executables, dlls and msbuild targets to source control. These are the files that i had to add to source control: (Please consider that this might violate … Read more

Use xcodebuild (Xcode 8) and automatic signing in CI (Travis/Jenkins) environments

I basically run into the same issue using Jenkins CI and the Xcode Plugin. I ended up doing the build and codesigning stuff myself using xcodebuild. 0. Prerequisites In order to get the following steps done successfully, you need to have installed the necessary provisioning profiles and certificates. That means your code signing should already … Read more

Jenkins – Xcode build works codesign fails

We don’t use Jenkins but I’ve seen this in our build automation before. Here’s how we solved it: 1) Create your build Keychain. This will contain the private key/certificate used for codesigning: security create-keychain -p [keychain_password] MyKeychain.keychain The keychain_password is up to you. You’ll use this later to unlock the keychain during the build. 2) … Read more

How do I make a Jenkins job start after multiple simultaneous upstream jobs succeed?

Pipeline plugin You can use the Pipeline Plugin (formerly workflow-plugin). It comes with many examples, and you can follow this tutorial. e.g. // build stage ‘build’ … // deploy stage ‘deploy’ … // run tests in parallel stage ‘test’ parallel ‘functional’: { … }, ‘performance’: { … } // promote artifacts stage ‘promote’ … Build … Read more

How can I use the legacy build system with Xcode 10’s `xcodebuild`?

There is an (as of yet undocumented) flag in xcodebuild: -UseModernBuildSystem=<value>. The value can be either 0 or NO to use the legacy (“original”) build system, or 1 or YES to use the new build system. For example: xcodebuild -workspace Foo.xcworkspace -scheme Bar -configuration Release -archivePath /path/to/Foo.xcarchive clean archive -UseModernBuildSystem=NO (-UseNewBuildSystem=<value> seems to work as … Read more