1

I have in one repository two projects and I want to run one of them with command "test-app :spock --echoOut". I add a section for grails running enter image description here

when I run Item then jenkins give me "... does not appear to be part of a Grails application" but I try to run

"test-app :spock --echoOut" in projectDir locally all is working well.

Meenesh Jain
  • 2,532
  • 2
  • 19
  • 29
Oleg Baranovsky
  • 368
  • 5
  • 22

2 Answers2

0

When you have two projects in your repository, what is the layout of it?

Grails in jenkins expect the root of the repo to be the grails application.

If it is not that, you can make a sparse checkout, where you only checkout the subfolder that has the project you need. See https://issues.jenkins-ci.org/browse/JENKINS-21809

0

I changed grails.project.work.dir and Project.Base.Directory from: /var/lib/jenkins/.grails/2.3.4/projects/MainDir/projectDir to: /var/lib/jenkins/jobs/MainDir/workspace/projectDir

Oleg Baranovsky
  • 368
  • 5
  • 22