2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Frequency is not conditional it will trigger the build at the required frequency whether there are changes or not. Is there a particular reason not to build on every commit? It's usually better that a build fails sooner rather than later.
Using a phase within your build spec, for example, pre_build you could run git commands/script to determine if there have been any changes within the last hour. This could set a custom env var which you then use to conditionally wrap the build phase. Additionally, the env var CODEBUILD_RESOLVED_SOURCE_VERSION might allow you to determine if there have been any changes since last build.
répondu il y a 2 ans
0
Using the pre build phase to set env var that's a great idea, will give that a go. Thanks.
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an