kandi background
Explore Kits

gReview | Bamboo plugin integrating Gerrit which allows Bamboo | Plugin library

 by   onepremise Java Version: Current License: Apache-2.0

 by   onepremise Java Version: Current License: Apache-2.0

Download this library from

kandi X-RAY | gReview Summary

gReview is a Java library typically used in Plugin, Ethereum applications. gReview has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.
This plugin polls Gerrit for changes submitted to the Gerrit review system. When a new change is submitted, gReview will checkout the change and verify it builds. gReview will update the Gerrit change to reflect the correct score for a successful or unsuccessful build.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • gReview has a low active ecosystem.
  • It has 15 star(s) with 23 fork(s). There are 2 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 14 open issues and 26 have been closed. On average issues are closed in 85 days. There are 3 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of gReview is current.
gReview Support
Best in #Plugin
Average in #Plugin
gReview Support
Best in #Plugin
Average in #Plugin

quality kandi Quality

  • gReview has 0 bugs and 0 code smells.
gReview Quality
Best in #Plugin
Average in #Plugin
gReview Quality
Best in #Plugin
Average in #Plugin

securitySecurity

  • gReview has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • gReview code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
gReview Security
Best in #Plugin
Average in #Plugin
gReview Security
Best in #Plugin
Average in #Plugin

license License

  • gReview is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
gReview License
Best in #Plugin
Average in #Plugin
gReview License
Best in #Plugin
Average in #Plugin

buildReuse

  • gReview releases are not available. You will need to build from source code and install.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • gReview saves you 2123 person hours of effort in developing the same functionality from scratch.
  • It has 4655 lines of code, 383 functions and 19 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
gReview Reuse
Best in #Plugin
Average in #Plugin
gReview Reuse
Best in #Plugin
Average in #Plugin
Top functions reviewed by kandi - BETA

kandi has reviewed gReview and discovered the below as its top functions. This is intended to give you an instant insight into gReview implemented functionality, and help decide if they suit your requirements.

  • Assigns a patchset to a JSON object
    • Set gerrit repository adapter .
      • Updates the revision verification of a build .
        • Gets the web repository url for a commit file .
          • Executes the action .
            • Initialize handler .
              • Clone submodules .
                • Runs the given query and prints the result .
                  • Fill values from a GritUserVO .
                    • Determines if the given context should be displayed or not .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      gReview Key Features

                      Gerrit Code Review Integration.

                      GitWeb Integration.

                      Builds and Verifies Changes Submitted to Gerrit.

                      Changes are built independently in the order they are submitted.

                      Change dependencies are resolved naturally through Gerrit PatchSets.

                      Change comments automatically updated with build results.

                      Gerrit Change Display Tab available in Build Summary.

                      Git submodule support.

                      Remote trigger builds from Gerrit.

                      Branching support

                      [All the Features Provided By Bamboo](http://www.atlassian.com/software/bamboo/features/)

                      gReview

                      copy iconCopydownload iconDownload
                       * Login as admin.
                       * Select 'Configure Plan' under 'Actions' in the dropdown menu on the right.
                       * Select the 'Source Repositoryies' Tab.
                       * [Select 'Add Repository'.](https://plus.google.com/u/0/photos/111679711947778743513/albums/5751797380554349169/5754399119605434834)
                      
                      Optional Gerrit Branch Configuration
                      ------------------------------------
                      
                      By default, gReview is configured to draw down changes from Gerrit using the
                      master branch. If you choose, you may overide this setting and configure to
                      poll all branches or a specific custom branch. However, keep in mind, this
                      setting may be redundant if you use Bamboo's branching features. If you
                      choose to overide the default branch, you will find the settings available
                      here:
                      
                       * Login as admin.
                       * Select 'Configure Plan' under 'Actions' in the dropdown menu on the right.
                       * Select the 'Source Repositoryies' Tab.
                       * Select the repository you intend to configure.
                       * If the repository is 'linked', follow the link to your repository.
                       * Goto 'Advanced options'
                       * Under 'Default Branch', select master, 'All branches', or specify your custom branch.
                       * Save
                      
                      Enable Gerrit Verification
                      --------------------------
                      
                       * Login as admin.
                       * Select 'Plan Configuration' under 'Actions' in the dropdown menu on the right.
                       * Select the 'Stages' Tab.
                       * Select the job you're interested in. Usually there is only one, 'Default Job'.
                       * Under the job configuration, select the "Miscellaneous" tab.
                       * Check ['Run Gerrit Verification after main build.'](https://lh4.googleusercontent.com/-oawKtjfHbbo/T9J9PgwUF9I/AAAAAAAAANU/C0kOBQYFkC8/s1303/gerritConfig2.JPG)
                      
                      Viewing Gerrit Change Information
                      ---------------------------------
                      
                      Gerrit change information is available under the Build Summary [Gerrit Tab](https://lh6.googleusercontent.com/-k0Oy_CnsufA/T9J9PglbtTI/AAAAAAAAANM/vPKpt8nsgUY/s785/gerritTab.JPG)
                      
                      Adding Gitweb
                      -------------
                      
                       * Login as admin.
                       * Select 'Configure Plan' under 'Actions' in the dropdown menu on the right.
                       * [Select the 'Source Repositoryies' Tab.](https://lh3.googleusercontent.com/-EbLti6gv3xo/UCKuvN1j7vI/AAAAAAAAAPQ/OaZ8MsXwGjs/s939/source-repositories.JPG)
                       * Select an existing Gerrit Repository or add one.
                       * Drop down 'Advanced Options' and select the GitWeb repository.
                       * [Provide your details and save](https://lh5.googleusercontent.com/-wd7iOs6EmhQ/UCKvWNPlPJI/AAAAAAAAAPY/9LkFAJtksFI/s917/source-repositories2.JPG)
                      
                      Creating A Branch (Gerrit UI)
                      -----------------------------
                       * Login to Gerrit.
                       * Select Projects->List->'YourProject'
                       * Enter your new branch below beside "Branch Name"
                       * Provide the initial revision, leave as HEAD for branch off master
                       * Hit 'Create Branch'
                      
                      Checkout Branch Made from Gerrit UI
                      -----------------------------------
                      
                       * git fetch origin
                       * git checkout new-branch
                      
                      Creating A Branch (Git Console)
                      -------------------------------
                      
                       * git checkout -b new-branch origin/master
                       * git checkout master
                       * git push origin HEAD:new-branch
                       * git checkout new-branch
                       * git push origin HEAD:refs/for/new-branch
                      
                       Remote Trigger Builds
                       ---------------------
                      
                        * Go under 'Plan Configuration'=>'Triggers'.
                        * Select trigger which applies, usually the first trigger.
                        * Switch the setting from existing 'Polling the repository for changes' to 'Repository triggers the build when changes are committed'.
                        * Make sure the checkbox is selected for the repository you're using in your plan.
                        * If you enter an IP for security reasons, make sure it matches the hostname in your repo configuration. However, it should work fine if you leave empty.
                        * Hit 'Save'.
                      
                      Troubleshooting
                      ===============
                      
                      Connection Issues
                      -----------------
                      
                      Make sure you have Gerrit setup correctly with SSH identity key generated and
                      host used in the SSH connection string added to known host. Detailed instructions
                      are available in the [Gerrit documentation](https://gerrit-review.googlesource.com/Documentation/install-quick.html#usersetup).
                      
                      **Note**: Some builds will still hang in native msysgit mode on Windows due to
                      the following issue with the bamboo-git-plugin: [https://jira.atlassian.com/browse/BAM-11096](https://jira.atlassian.com/browse/BAM-11096).
                      
                      You can work around this issue by manually adding your hostname, used in the
                      repository configuration, to the msysgit/.ssh/known_hosts file. Example:
                      
                      > 127.0.0.1 ssh-rsa XXXXB3NzaC1yc2EAAAADAQABBBBgQC699HzXHwr1H6OJeVlRo7h4r+3PY
                      > d0wNkqzl6EUAeU2iZjqFqQL2ZiNVqs2JrpTNadbgtXBNk9rhQIWajQZG9ZJG/OPxe+NOkbWQVev
                      > rcELsw5N2wxcJOWz+ey1tFv3VCtNCLUGgF7yIg0kZZVQ+HvAzLoMbiHs0haVmEjnLherSw==
                      
                      NullPointerException Encountered after Upgrade
                      ----------------------------------------------
                      
                      If this is an upgrade, and you encouter a NullException when attempting to
                      build, you may need to resave your repository settings.Release 1.2.3 changed
                      the way the ssh private key is stored for multiple repositories. Resaving
                      should resolve this issue.
                      
                      Unable to Delete Repository
                      ---------------------------
                      
                      This is an old issue and has been fixed in new releases of Bamboo. Here's the
                      [ticket](https://jira.atlassian.com/browse/BAM-11377).
                      
                      Debugging
                      ---------
                      
                      If problems persist, you can turn on debugging in the Administration console to
                      help resolve and report issues. Steps to turn on debugging:
                      
                       * Goto Administration->System->Log Settings
                       * Add com.houghtonassociates.bamboo.plugins=DEBUG
                      
                      Check your Bamboo home directory for log output:
                      
                      Ex: bamboo-home\logs\atlassian-bamboo.log
                      
                      Bug Fixes and Enhancements
                      ==========================
                      
                      1.4.6.7 Updates
                      ---------------
                      
                      * Fixed NullPointerException in ViewGerritChainResultsAction.
                      
                      1.4.6.5 Updates
                      ---------------
                      
                      * Support for Bamboo 5.10.0-5.10.3
                      * Upgrade the jGit plugin to 4.0.3
                      * Upgrade gerrit-events to 2.5.0
                      * Migrate to new annotations for NotNull and Nullable
                      
                      1.4.5.1 Updates
                      ---------------
                      
                      * Bring OSGi and Pom configuration up-to-date
                      * Upgrade atlassian plugin model to support 5.8.0-5.9.10
                      * Upgrade dependencies to support 5.8.0-5.9.10
                      * Upgrade the bamboo jGit plugin
                      * Upgrade gerrit-events to 2.1.0
                      * Remove BuildStrategy, TriggeredBuildStrategy, ImmutableChain.getTriggers deprecated references from GerritRepository and replace with newer call conventions
                      
                      1.4.3.6 Updates
                      ---------------
                      
                      * Added capability for merging gerrit specific branches
                      
                      1.4.2.1 Updates
                      ---------------
                      
                      * Support for Bamboo 5.6.0
                      * Added capability for creating branches
                      
                      1.4.1.20 Updates
                      ----------------
                      
                      * Support for Bamboo 5.1.0 - 5.5.1
                      * Resolved permissions on configuration directory for MetaConfig
                      * Added Support for remote triggering builds from repository
                      
                      1.4.0 Updates
                      -------------
                      
                      * Tested with Gerrit 2.9
                      * Added capability for retrieving local and remote branches.
                      * Added functionality to support getOpenBranches.
                      * Resolved dependency loading issues with OSGI for 5.2-5.6
                      * Provided mechanism to change default branch to pull changes from
                      * How to restrict bamboo to poll the changes only on a particular branch #26
                      * gReview problem - bamboo is checking out master branch #30
                      
                      1.3.0 Updates
                      -------------
                      
                      * Removed Native Git dependency, replaced by latest jGit
                      * Removed bamboo-git plugin dependency
                      * Added submodule support
                      * Resolved dependency loading issues with OSGI
                      * Resolved path parsing issues with remote and local agent on Linux
                      * Extended Support for 4.2.1 - 5.1.1
                      * Issue #23 Changes discovering problem
                      * Issue #27 Bamboo 4.3 support
                      
                      1.2.9 Updates
                      -------------
                      
                       * Issue #21 Gerrit Chain Results screen shows changes from other repositories
                       * Issue #20 Edit Gerrit Repository' screen force to re-enter passphrase for private key
                       * Issue #19 NPE on Bamboo agent after job is dispatched by gReview
                      
                      1.2.8 Updates
                      -------------
                      
                       * Issue #16 4.2.X Support.
                      
                      1.2.3 Updates
                      -------------
                      
                       * Issue #13 gReview doesn't uniquely store connections settings per plan.
                      
                      1.2.2 Updates
                      -------------
                      
                       * Issue #12: NullPointer exception encountered in GerritService
                      
                      1.2.1 Updates
                      -------------
                      
                       * Issue #11: Error message reported by failed build can break verification update.
                      
                      1.2.0 Updates
                      -------------
                      
                       * Issue #10: Exclude Display of Commit Action Tag in Build Changes
                       * Issue #9: Exception on failed build
                       * Issue #8: Setting non standard port does not work
                       * Issue #7: Include Build Results URL for Verified Changes in Gerrit
                       * Issue #6: GitWeb Integration
                      
                      1.1.3 Updates
                      -------------
                      
                       * Issue #5: Gerrit Tab Displays on Unrelated Plans
                      
                      1.1.2 Updates
                      -------------
                      
                       * Issue #4:  Build Plan Fails When no Changes Open
                      
                      1.1 Updates
                      -----------
                      
                       * Issue #1: Checkout Fails When Bamboo Configured with Native Git
                       * Issue #2: Add Git Submodules Capability
                      
                      Development Branches
                      ====================
                      
                      * 4.2.1-5.0.1: Use this branch for updates to the cooresponding releases
                      * master: Master supports ongoing development for 5.1.1 +
                      
                      How to build the Bamboo Gerrit Plugin
                      =====================================
                      
                      Impatient way:
                      --------------
                      
                      1. `mvn package' (Apache Maven 2.2.1 was used to develop this plugin)
                      
                      More patient way:
                      -----------------
                      
                      1. Download and install the [latest JDK](http://java.sun.com).
                      2. Download and install the [Atlassian Plugin SDK](http://confluence.atlassian.com/display/DEVNET/Setting+up+your+Plugin+Development+Environment).
                      3. Run `atlas-package -DskipTests' in the directory containing Bamboo Gerrit Plugin pom.xml.
                      4. Grab plugin JAR file from `./target/greview-<version>.jar'.
                      
                      Full documentation on how to develop Atlassian Plugins is available
                      at the [Atlassian Developer Site](http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Plugin).
                      
                      How to deploy Git Plugin into existing Bamboo instance
                      ======================================================
                      
                      Full documentation on installing Atlassian Plugins is available at:
                      * http://confluence.atlassian.com/display/BAMBOO/Installing+a+new+Plugin
                        (please note that gReview Plugin is 'Version 2' plugin)
                      
                      Maintainer
                      ==========
                      
                      Jason Huntley
                      -------------
                      
                      * jhuntley@houghtonassociates.com
                      * onepremise@gmail.com
                      
                      <a href="http://stackexchange.com/users/1254855">
                      <img src="http://stackexchange.com/users/flair/1254855.png" width="208" height="58" alt="profile for Jason Huntley on Stack Exchange, a network of free, community-driven Q&A sites" title="profile for Jason Huntley on Stack Exchange, a network of free, community-driven Q&A sites">
                      </a>

                      Creating a formula, Same cell, Dynamic number of sheets

                      copy iconCopydownload iconDownload
                      Sub b_form()
                      Dim c As Range
                      Dim myform As String
                      Dim r As Long
                      Dim x As Long
                      
                      mytotal = 0
                      x = 1
                      ThisWorkbook.Sheets("Score").Select
                      Cells(1, 1).Select
                      
                      ' count rows in a named range
                      Dim oRng As Range, lRows As Long
                      lRows = 0
                      For Each oRng In Range("GReview").Areas
                      lRows = lRows + oRng.Rows.Count
                      Next oRng
                      
                      'Gets sheetnames and cells to build dynamic formula
                       For r = 3 To 5
                          For Each c In Range("GReview")
                              If x <> lRows Then
                                  myform = myform + c & "!" & Cells(2, r).Address(RowAbsolute:=False, ColumnAbsolute:=True) & ","
                              Else
                                  myform = myform + c & "!" & Cells(2, r).Address(RowAbsolute:=False, ColumnAbsolute:=True)
                              End If
                              x = x + 1
                          Next c
                              ThisWorkbook.Worksheets("Score").Cells(2, r) = "=Average(" & myform & ")"
                              myform = ""
                              x = 1
                      Next r
                      ' this calculation is no longer needed at this time
                      'Sheets("Score").Range("F2") = "=($C2*$D2)-(($C2*$D2)*($E2/5))"
                       lr = get_lr(2)
                      
                      With Sheets("Score").Range("C2:E" & lr)
                          .FillDown
                      End With
                      
                      
                      End Sub
                      

                      Community Discussions

                      Trending Discussions on gReview
                      • Creating a formula, Same cell, Dynamic number of sheets
                      Trending Discussions on gReview

                      QUESTION

                      Creating a formula, Same cell, Dynamic number of sheets

                      Asked 2017-Sep-14 at 19:52

                      I have created a workbook that has 2 sheets that will always be there: "Master" and "Score". On the Master sheet I have a named dynamic range where I will be inputting names, for instance(Mike, Sheila, Tom, and Matt) I have a macro that will take that list of names and create separate sheets. This list can vary from 3 to 20.

                      Sub create_ws()
                      
                          Dim MyCell As Range, MyRange As Range
                          Dim NewName As String
                      
                          Set wb1 = ThisWorkbook
                          Set ws2 = wb1.Sheets("Master")
                      
                      
                          'This Macro will create separate tabs based on a list in Master Tab K2 down
                      
                          Set MyRange = ws2.Range("K2")
                          Set MyRange = Range(MyRange, MyRange.End(xlDown))
                      
                          screen 0, 1
                      
                          For Each MyCell In MyRange
                              If SheetExists(MyCell) Then
                                  NewName = InputBox("Sheet already exists, Please specify a unique name!", "New Copy")
                                      If NewName = vbNullString Or NewName = "" Then
                                          screen 1
                                          Exit Sub
                                      End If
                      
                                  Sheets.Add after:=Sheets(Sheets.Count)
                                  Sheets(Sheets.Count).Name = (NewName)
                              Else
                                  Sheets.Add after:=Sheets(Sheets.Count) 'creates a new worksheet
                                  Sheets(Sheets.Count).Name = MyCell.Value ' renames the new worksheet
                                  format_tabs (MyCell) 'calls next process to add named tabs
                              End If
                          Next MyCell
                      
                          screen 1
                      
                          ws2.Select
                      End Sub
                      

                      On each sheet the format will be the same: column A and B are pre-filled with data and then columns C, D,and E are where the person will fill in their scoring information. The sheets and rows will vary, but the columns needed to average will always be the same.

                      What I am looking to do is on the "Score" sheet develop a macro that will build a formula that will average the responses in each sheet not with the static names and put them into the correct cell on the Scoring sheet. For instance if there are 11 issues the formula will be placed in C2, D2, E2, C3, D3, E3...all the way to C12, D12, E12. In cell C2 on the score sheet the formula should read =AVERAGE(Mike!C2,Sheila!C2,Tom!C2,Matt!C2) and in cell D2 the formula would read =AVERAGE(Mike!D2,Sheila!D2,Tom!D2,Matt!D2)

                      My named range is GReviewers and starts on Master!K2. I currently have helper cells but am looking to fully automate the workbook as well as expand my knowledge with VBA.

                      Here is some code I originally found. It sums all the sheets I need it to and puts it in the cell I need it to go in, but I need it to average it and if I could get the formula to display in the cell I would be able to use .FillDown.

                      Sub Totals()
                      
                      Dim c As Range, mytotal As Double
                      
                      mytotal = 0
                      
                          For Each c In Range("GReview")
                              mytotal = mytotal + Sheets(c.Value).Range("C2")
                          Next c
                              ThisWorkbook.Worksheets("Score").Range("C2") = mytotal
                      
                      End Sub
                      

                      ANSWER

                      Answered 2017-Sep-14 at 19:52

                      So after playing and researching I was able to solve my own question. If anyone have any neater way to code please feel free to add it on.

                      Sub b_form()
                      Dim c As Range
                      Dim myform As String
                      Dim r As Long
                      Dim x As Long
                      
                      mytotal = 0
                      x = 1
                      ThisWorkbook.Sheets("Score").Select
                      Cells(1, 1).Select
                      
                      ' count rows in a named range
                      Dim oRng As Range, lRows As Long
                      lRows = 0
                      For Each oRng In Range("GReview").Areas
                      lRows = lRows + oRng.Rows.Count
                      Next oRng
                      
                      'Gets sheetnames and cells to build dynamic formula
                       For r = 3 To 5
                          For Each c In Range("GReview")
                              If x <> lRows Then
                                  myform = myform + c & "!" & Cells(2, r).Address(RowAbsolute:=False, ColumnAbsolute:=True) & ","
                              Else
                                  myform = myform + c & "!" & Cells(2, r).Address(RowAbsolute:=False, ColumnAbsolute:=True)
                              End If
                              x = x + 1
                          Next c
                              ThisWorkbook.Worksheets("Score").Cells(2, r) = "=Average(" & myform & ")"
                              myform = ""
                              x = 1
                      Next r
                      ' this calculation is no longer needed at this time
                      'Sheets("Score").Range("F2") = "=($C2*$D2)-(($C2*$D2)*($E2/5))"
                       lr = get_lr(2)
                      
                      With Sheets("Score").Range("C2:E" & lr)
                          .FillDown
                      End With
                      
                      
                      End Sub
                      

                      Source https://stackoverflow.com/questions/46180888

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install gReview

                      You can download it from GitHub.
                      You can use gReview like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the gReview component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

                      Support

                      For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Explore Related Topics

                      Share this Page

                      share link
                      Consider Popular Plugin Libraries
                      Try Top Libraries by onepremise
                      Compare Plugin Libraries with Highest Support
                      Compare Plugin Libraries with Highest Quality
                      Compare Plugin Libraries with Highest Security
                      Compare Plugin Libraries with Permissive License
                      Compare Plugin Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.