Questions tagged [nightly-build]

Building software automatically to ensure that no errors have been committed to source control that would prevent it being built. Especially useful when many people are changing the software independently. Usually done at night because of reduced commit activity, or because building takes a long time. Once built, the software may go on to be tested.

Concept

Building software refers to the processes of compiling, linking, packaging, generating documentation, and in general converting source code into something executable. Not all software will need all of those steps, but most of it will require some of them.

When many people are working on the same project, changes that might work perfectly on their own can combine to stop the software building. If that was only discovered when someone pulled the latest changes into their development copy, then they would have to stop work while the problems were solved. Automatic builds avoid this by taking the latest version, building it, and telling people when errors are found.

Nightly builds are automatic builds that are scheduled regularly, typically at night. Reasons for doing it then include errors being discovered before people start work in the morning, lower levels of changes, availability of hardware, and the time taken to build larger projects. Nowadays hardware is cheaper, software is more modular in construction, and it is often possible to increase the frequency of builds. Taken to the extreme, this leads to continuous integration, where builds are done one after the other. Some organisations are even able to build on every change, having enough resources that they do not have to wait for a build to finish before starting the next one.

This tag should be reserved for questions related to builds that run overnight or at a similar interval, not for ones that are specifically about continuous integration.

Tools

Many organisations use home-made build systems of varying levels of sophistication, but there are also a number of ready-made systems available. Most of them are designed for continuous integration, but also allow timed schedules. An typical example is Jenkins, and a list can be found at Wikipedia.

References

93 questions
49
votes
1 answer

Can't use `-Z macro-backtrace` unstable option with `cargo`

I am writing rust macros and came across an error about my macro I can't understand. In hope of understanding it better, I tried to follow the compiler's advice by setting the -Z macro-backtrace unstable option and compiling again. Here is said…
Dincio
  • 1,010
  • 1
  • 13
  • 25
49
votes
16 answers

Nightly Builds: Why should I do it?

Why should I do Nightly Builds?
Daniel Silveira
  • 41,125
  • 36
  • 100
  • 121
42
votes
15 answers

Compilation fails randomly: "cannot open program database"

During a long compilation with Visual Studio 2005 (version 8.0.50727.762), I sometimes get the following error in several files in some project: fatal error C1033: cannot open program database 'v:\temp\apprtctest\win32\release\vc80.pdb' (The file…
Lev
  • 6,487
  • 6
  • 28
  • 29
20
votes
1 answer

How do I use a nightly build of Scala?

I want to test my code against the latest bleeding edge Scala 2 or Scala 3 nightly. (Or, I want to use an experimental Scala 3 feature, which are only available in nightly builds.) What do I do?
Seth Tisue
  • 29,985
  • 11
  • 82
  • 149
13
votes
4 answers

How do I automatically set assembly version during nightly build?

We have a nightly build process that automatically versions all C++ projecs. Here's how it works. There's a common header file VersionNumber.h that has a specific #define for the version number. The nighly build checks this file out, increments the…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
12
votes
2 answers

How to configure Jenkins to send a notification email when a Slave goes offline?

How to configure Jenkins to send a notification email when a Slave goes offline? I have a Windows Server in the Cloud. In there is a Jenkins Slave running that runs a nightly build, but sometimes the Slave goes offline and I need to know when it…
11
votes
1 answer

Installing latest rust nightly complains about missing rls component

Trying to compile: https://github.com/SergioBenitez/Rocket/tree/master/examples/hello Cargo.toml [dependencies] rocket = "0.4.10" Complains that I need rust nightly $ cargo build ... Error: Rocket (core) requires a more recent version of rustc. …
Chuck
  • 431
  • 4
  • 10
9
votes
6 answers

Are daily builds the way to go for a web app?

Joel seems to think highly of daily builds. For a traditional compiled application I can certainly see his justification, but how does this parallel over to web development -- or does it not? A bit about the project I'm asking for -- There are 2…
T. Stone
  • 19,209
  • 15
  • 69
  • 97
7
votes
2 answers

cargo +nightly error : no such subcommand

While executing : cargo +nightly install --git https://github.com/alexcrichton/wasm-gc --force in Ubuntu 18.04, is throwing error: no such subcommand: +nightly My system has following nightly version rustc 1.47.0-nightly cargo 1.47.0-nightly…
Genie
  • 117
  • 2
  • 7
6
votes
1 answer

Declarative Jenkins pipeline with Nightly deploy for master branch

I wanted to translate some jobs to the new Jenkins 2.0 declarative pipelines. At the moment they are 3 different jobs: CI --> PollSCM every 5 min (only master), build and run tests. NIghtly --> Run every night (build, test, integration test and…
Guel135
  • 750
  • 7
  • 26
6
votes
10 answers

What artifacts to save for a nightly build?

Assume that I set up an automatic nightly build. What artifacts of the build should I save? For example: Input source code output binaries Also, how long should I save them, and where? Do your answers change if I do Continuous Integration?
Jay Bazuzi
  • 45,157
  • 15
  • 111
  • 168
6
votes
2 answers

How to publish Play Framework application from Jenkins to load balanced environment

I have just started to setup bullet proof nightly build environment to Play based application. So far I have not found a good tutorial about this topic. Could you review currently solution I am setuping? Thanks. Setup Play Framework to Jenkins…
5
votes
1 answer

How do I use nightly builds of Scala 2.9 with maven?

Recently I wanted to try some of the new features in Scala 2.9 in a small project. I would like to use maven for building it. How can I tell Maven to use the latest nightly build of Scala 2.9? If someone knows how to do this with sbt instead of…
Kim Stebel
  • 41,826
  • 12
  • 125
  • 142
5
votes
2 answers

Bleeding Edge/Nightly Build dependency management in Python. Strategies and best practices?

The situation You have 2 software products in development, a library which presents an API and a GUI tool that exposes the library for end users. Additionally, you expect a lot of technical staff at your place to use the library as a building…
5
votes
2 answers

Movement towards continuous integration in progress, any suggestions?

We have a bunch of C/C++ modules and projects for QNX4, QNX6 and Linux. All of these are written in Eclipse/QNX Momentics and we use Project Sets (psf files) to combine different modules into projects as required. The projects are built using make.…
Sagar
  • 9,456
  • 6
  • 54
  • 96
1
2 3 4 5 6 7