Category Archives: hudson

Get it working on local machine.

testing this on my machine.  configured nbos-grails-auth/grails-app/conf/BuildConfig.groovy to include both codecoverage plugin and codenarc plugin

    plugins {
      // Testing
      test ':code-coverage:1.2.5', {
        export = false
      test ':codenarc:0.17', {
        export = false

run the tests

[09:24][vineeln@mob05:~/work/nbos-grails-auth(master)]$ grails test-app -coverage
| Cobertura Code Coverage Complete (view reports in: target/test-reports/cobertura)
Flushing results...
Flushing results done
Cobertura: Loaded information on 77 classes.
Cobertura: Saved information on 77 classes.

Continue reading

The first step to configure Hudson was to first understand how Grails resolves the library dependencies.

There are two modules nbos-grails-auth which generates a plugin/artifact which is used by nbos-grails-oauth2-provider.

nbos-grails-auth/grails-app/conf/BuildConfig.groovy, if you notice “changing=true” is required at line 32, so that grails tries to get the latest always. but because of a bug GRAILS-7203 in Grails. it doesn’t seem to pull the latest from mavenLocal(), because of this I did face situation where the latest SNAPSHOT wasn’t being pulled from local maven repository (mavenLocal())

Continue reading