I try to use Jenkins and Gerrit to verify the code can pass compilation before merged into branch.
However, there is one case can not be caught.
If someone add new config in kernel and forget to update .config file. Jenkins will ignore the config and move on.
The log is like
Use function foo (XXXX_XXXX) [N/y/?] (NEW)
Error in reading or end of file.
But the compilation continue.
I alreay set stop on error in the beginning of my build script.
#!/bin/bash
set -e
But this won't work.
When I call the script in my shell, it will prompt the dialog box forever and won't continue.
When this script is called from Jenkins, it will continue.
Any idea to solve this issue?