Continuous Integration

cancel
Showing results for 
Search instead for 
Did you mean: 

ni / niveristand-custom-device-build-tools

Hi Forum,

 

I tried to set up a Jenkins & GITlab environment based on the
GitHub - ni/niveristand-custom-device-build-tools: Tools for automating builds of NI VeriStand custom devices.
I did not have Veristand im not sure, if it is necessary.
I use LabVIEW 2019 CLI is aktiv.

 

I had setup to JENKINS File in the Project to Build.
#!/usr/bin/env groovy
// Jenkinsfile
@Library('vs-build-tools') _
List<String> lvVersions = ['2019']
ni.vsbuild.PipelineExecutor.execute(this, lvVersions)

 

and in the same Project to Build the build.toml file:

 

[archive]
build_output_dir = 'Built'
archive_location = 'C:\Temp\myBuild'

[projects.cd]
path = 'source\Jenkins.lvproj'

[[build.steps]]
name = 'Build My Custom Device'
type = 'lvBuildAll'
project = '{cd}'

 

If I try to run this configuration I get an error in the Jenkins console output:

 

[GitLab Pipeline Status] Notifying branch build status: RUNNING Build_myProject/RnD%2Ftesting%2FSupport%2FmyPlayGround/myBranch: Build started...
[GitLab Pipeline Status] Notified
ERROR: Could not find any definition of libraries [vs-build-tools]
[GitLab Pipeline Status] Notifying branch build status: FAILED Build_myProject/RnD%2Ftesting%2FSupport%2FmyPlayGround/myBranch: There was a failure building this commit
[GitLab Pipeline Status] Notified
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: Loading libraries failed

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:571)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:523)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:337)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

 

Does anybody has an idea?

Thank for help.

0 Kudos
Message 1 of 2
(1,740 Views)

you are missing the msbuild tools

ERROR: Could not find any definition of libraries [vs-build-tools]

 

You could probably find them here
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16

 

0 Kudos
Message 2 of 2
(1,693 Views)