Tool/software: Code Composer Studio
I am trying to build a Code Composer studio in Jenkins. I have the build server setup correctly and can login and build the code from the following build script:
#!/bin/bash
CCS=/opt/ti/ccs910/ccs/eclipse/eclipse
#CCS=/home/builduser/ti/ccs910/ccs/eclipse/eclipse
WS=.
strings=(
libmbedcrypto_CC1352R1_LAUNCHXL_tirtos_gcc
libopenthread_diag_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
libopenthread_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
libopenthread_ncp_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
libopenthread_platform_utils_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
ncp_ftd_GRIM
)
if [ -d .metadata ]
then
rm -rf .metadata
fi
for i in "${strings[@]}"; do
echo Importing $i
$CCS -noSplash -data $WS -application com.ti.ccstudio.apps.projectImport -ccs.location $i
done
$CCS -noSplash -data $WS -application com.ti.ccstudio.apps.projectBuild -ccs.workspace -ccs.buildType full
This will create the CCS workspace, add the projects, clean and build the project. But when Jenkins runs this script I get the following error message:
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/cc1352p_thread
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Done
Cloning the remote Git repository
Cloning repository ssh://git@bitbucket:7999/ar2/cc1352p_thread.git
> git init /var/lib/jenkins/workspace/cc1352p_thread # timeout=10
Fetching upstream changes from ssh://git@bitbucket:7999/ar2/cc1352p_thread.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --progress ssh://git@bitbucket:7999/ar2/cc1352p_thread.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url ssh://git@bitbucket:7999/ar2/cc1352p_thread.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url ssh://git@bitbucket:7999/ar2/cc1352p_thread.git # timeout=10
Fetching upstream changes from ssh://git@bitbucket:7999/ar2/cc1352p_thread.git
using GIT_ASKPASS to set credentials
> git fetch --tags --progress ssh://git@bitbucket:7999/ar2/cc1352p_thread.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision d16f0b14bf0740697c34e8e68128af8f4f9f0dd2 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f d16f0b14bf0740697c34e8e68128af8f4f9f0dd2
> git rev-list 2965f0e4f6ea83f801d18c497628a0302ecd151e # timeout=10
[cc1352p_thread] $ /bin/sh -xe /tmp/jenkins682198274838958152.sh
+ ./generate_build.sh
Importing libmbedcrypto_CC1352R1_LAUNCHXL_tirtos_gcc
--------------------------------------------------------------------------------
Importing project from '/var/lib/jenkins/workspace/cc1352p_thread/libmbedcrypto_CC1352R1_LAUNCHXL_tirtos_gcc'...
Done!
Importing libopenthread_diag_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
--------------------------------------------------------------------------------
Importing project from '/var/lib/jenkins/workspace/cc1352p_thread/libopenthread_diag_ncp_CC1352R1_LAUNCHXL_tirtos_gcc'...
Done!
Importing libopenthread_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
--------------------------------------------------------------------------------
Importing project from '/var/lib/jenkins/workspace/cc1352p_thread/libopenthread_ncp_CC1352R1_LAUNCHXL_tirtos_gcc'...
Done!
Importing libopenthread_ncp_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
--------------------------------------------------------------------------------
Importing project from '/var/lib/jenkins/workspace/cc1352p_thread/libopenthread_ncp_ncp_CC1352R1_LAUNCHXL_tirtos_gcc'...
Done!
Importing libopenthread_platform_utils_ncp_CC1352R1_LAUNCHXL_tirtos_gcc
--------------------------------------------------------------------------------
Importing project from '/var/lib/jenkins/workspace/cc1352p_thread/libopenthread_platform_utils_ncp_CC1352R1_LAUNCHXL_tirtos_gcc'...
Done!
Importing ncp_ftd_GRIM
--------------------------------------------------------------------------------
Importing project from '/var/lib/jenkins/workspace/cc1352p_thread/ncp_ftd_GRIM'...
Done!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CCS headless build starting... [Fri Aug 30 08:50:01 CDT 2019]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
================================================================================
Pre processing...
================================================================================
Building...
Buildfile generation error occurred..
Product 'com.ti.SIMPLELINK_CC13X2_26X2_SDK' v3.20.0.68 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Build stopped..
Buildfile generation error occurred..
Product 'com.ti.SIMPLELINK_CC13X2_26X2_SDK' v3.20.0.68 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Build stopped..
Buildfile generation error occurred..
Product 'com.ti.SIMPLELINK_CC13X2_26X2_SDK' v3.20.0.68 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Build stopped..
Buildfile generation error occurred..
Product 'com.ti.SIMPLELINK_CC13X2_26X2_SDK' v3.20.0.68 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Build stopped..
Buildfile generation error occurred..
Product 'com.ti.SIMPLELINK_CC13X2_26X2_SDK' v3.20.0.68 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Build stopped..
Buildfile generation error occurred..
Product 'com.ti.SIMPLELINK_CC13X2_26X2_SDK' v3.20.0.68 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Build stopped..
================================================================================
CCS headless build complete! 6 out of 6 projects have errors.
Build step 'Execute shell' marked build as failure
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: FAILURE
Why can't the Jenkins user find the SDK, but when I login as a user of the machine it can find the SDK?