Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JetBrains/teamcity-bazel-plugin
TeamCity plugin for Bazel build system
https://github.com/JetBrains/teamcity-bazel-plugin
bazel teamcity teamcity-plugin
Last synced: 6 days ago
JSON representation
TeamCity plugin for Bazel build system
- Host: GitHub
- URL: https://github.com/JetBrains/teamcity-bazel-plugin
- Owner: JetBrains
- License: apache-2.0
- Created: 2018-08-06T08:19:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T16:20:43.000Z (7 months ago)
- Last Synced: 2024-04-13T12:06:58.564Z (7 months ago)
- Topics: bazel, teamcity, teamcity-plugin
- Language: Kotlin
- Size: 622 KB
- Stars: 14
- Watchers: 18
- Forks: 6
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bazel - JetBrains/teamcity-bazel-plugin - TeamCity plugin for Bazel ([blogpost](https://blog.jetbrains.com/teamcity/2018/11/bazel-plugin-for-teamcity/)) (Tooling / General)
README
# TeamCity Bazel build support
[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)TeamCity plugin to support projects based on [Bazel build](https://bazel.build/) system.
# Features
It provides the following features for bazel projects:
* Bazel tool detection on build agents
* Bazel command build runners
* Structured build log provider
* Auto-discovery of build steps
* Bazel tests reporter
* Cleaner of bazel workspace caches
* Bazel build feature to configure common startup options & remote cache
# DownloadYou can [download the plugin](https://plugins.jetbrains.com/plugin/11248-bazel-build-system-support) and install it as [an additional TeamCity plugin](https://confluence.jetbrains.com/display/TCDL/Installing+Additional+Plugins).
# Compatibility
The plugin is compatible with [TeamCity](https://www.jetbrains.com/teamcity/download/) 2018.1.x and greater.
# Known issues
If IDEA can't resolve proto classes, like `BuildEventStreamProtos`.
Here is how to resolve this:
1. click Help
2. Edit custom properties...
3. and property idea.max.intellisense.filesize=999999It increases max file size for coding assistance and design-time code inspection. You can find more information about these properties here: https://www.jetbrains.com/help/objc/configuring-file-size-limit.html
# Run/debug integration tests locally
1. Install [bazelisk](https://github.com/bazelbuild/bazelisk) macOS: `brew install bazelisk`, Windows: `choco install bazelisk`
2. Verify that `plugin-bazel-integration-tests/src/test/kotlin/jetbrains/bazel/integration/Environment.kt` has right path to the bazelisk
3. OPTIONAL: to debug BES server
1. Uncomment `"-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005",` in `plugin-bazel-integration-tests/src/test/kotlin/jetbrains/bazel/integration/BazelSteps.kt`
2. IntelliJ IDEA: Go to Run > Edit Configurations. Click the + button and select Remote JVM Debug. Set the port to 5005. Click OK. Attach to BES server for each integration test
4. Run tests with `./gradlew integration` or with [IntelliJ IDEA Cucumber for Java Plugin](https://plugins.jetbrains.com/plugin/7212-cucumber-for-java)
# ConfigurationThe plugin relies on `PATH` environment variable to detect installed `bazel` tool version.
# Build
This project uses gradle as the build system. You can easily open it in [IntelliJ IDEA](https://www.jetbrains.com/idea/help/importing-project-from-gradle-model.html) or [Eclipse](http://gradle.org/eclipse/).
# Contributions
We appreciate all kinds of feedback, so please feel free to send a PR or [submit an issue][youtrack].
## Additional Resources
- [Changelog](CHANGELOG.md)
- [Maintainership](MAINTAINERSHIP.md)[youtrack]: https://youtrack.jetbrains.com/newIssue?project=TW&c=Team%20Build%20Tools%20Integrations&c=tag%20tc-bazel