question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: exclude certain files from triggering autobuild

See original GitHub issue

It would be great to have a way to exclude certain files from triggering the autobuild. I’m using an H2 database, and every time I log in it updates the .h2.server.properties file in src/main/resources. This triggers a restart on the server, which logs me out of the H2 console and creates a vicious cycle. Is there any way to exclude this file from the autobuild detection?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
fbriconcommented, Dec 4, 2018

@paulnortonopi try this in your pom.xml:

<build>
  <resources>
    <resource>
      <directory>src/main/resources</directory>
      <excludes>
        <exclude>.h2.server.properties</exclude>
      </excludes>
    </resource>
  </resources>
  ...
</build>
0reactions
fbriconcommented, Dec 4, 2018

Cool. Closing then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exclude files from triggering a build #6301 - travis-ci ... - GitHub
Any particular reasoning for prepending them with bash? I just run mine as - /travis/deploy.sh but I also use the sudo: required in...
Read more >
Excluding .yaml and .md files from auto triggering the Jenkins ...
For example, on my instance of Jenkins, for the "GitHub Pull Request Builder" trigger type, after clicking the Advanced button, ...
Read more >
Repository triggers the build when changes are committed
Triggering a build when there is no repository update — Bamboo will ignore build triggers if the local working copy and the repository...
Read more >
Triggers in Azure Pipelines - Microsoft Learn
Learn about how you can specify CI, scheduled, gated, and other triggers in Azure Pipelines.
Read more >
Starting builds automatically with Flutter workflow editor
Exit or ignore build on certain commit message. You can skip building automatically triggered workflows by adding [skip ci] or [ci skip] to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found