Since we are running out of disk space on our global storage space, I wanted to redistribute the storage location.
Example:
I have set the UserAttriubte of the server to
storageDir=D:\QB9\StorageDirServer
and that of the Build Agent to
storageDir=D:\QB9\StorageDirAgent
In the Storage Directory Setting of the Advanced Settings i have the following code.
${groovy:
import com.pmease.quickbuild.Context
def nodeAttribute = system.storageDir
if (node.hasAttribute("storageDir"))
nodeAttribute = node.getAttribute("storageDir")
Context.getLogger().warn("StorageDircetorySetting from Advanced Settings: StorageDir Attributes = " + nodeAttribute)
return nodeAttribute
}
When I now run a configuration on the server node the logger prints
StorageDircetorySetting from Advanced Settings: StorageDir Attribute = D:\QB9\StorageDirServer
and the build.publishDir is set to D:\QB9\StorageDirServer\builds\b0xy\xy
That's okay.
but when I run the configuration on the agent the logger prints correctly
StorageDircetorySetting from Advanced Settings: StorageDir Attribute = D:\QB9\StorageDirAgent
but the variable build.publishDir has still the path form the server node D:\QB9\StorageDirServer\builds\b0xy\xy
instead of D:\QB9\StorageDirAgent\builds\b0xy\xy
what am I doing wrong
QB Version = 9.0.9, 2019-05-04
- solved #2
- replies 1
- views 312
- stars 0