All, I’m looking to move some of my CircleCI to use the new (to me) commands…command. And I’m liking it except for one thing: it is ugly on the Dashboard where I monitor the pipelines probably because I’m doing it wrong.
With my old style where I had:
- run:
name: "CMake"
command: |
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm
mkdir build
cd build
cmake .. -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_BUILD_TYPE=Debug -DUSE_F2PY=OFF
On my Dashboard I’d see a nice section named “CMake”.
Cool. Now with a command:
commands:
cmake:
description: "Run CMake"
parameters:
repo:
type: string
compiler:
type: string
steps:
- run: |
mkdir -p /logfiles
cd ${CIRCLE_WORKING_DIRECTORY}/<< parameters.repo >>
mkdir -p ${CIRCLE_WORKING_DIRECTORY}/workspace/build-<< parameters.repo >>
cd ${CIRCLE_WORKING_DIRECTORY}/workspace/build-<< parameters.repo >>
cmake ${CIRCLE_WORKING_DIRECTORY}/<< parameters.repo >> -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=<< parameters.compiler >> -DCMAKE_BUILD_TYPE=Debug -DUSE_F2PY=OFF -DMPIEXEC_PREFLAGS=${MPIEXEC_PREFLAGS} -DCMAKE_INSTALL_PREFIX=${CIRCLE_WORKING_DIRECTORY}/workspace/install-<< parameters.repo >> |& tee /logfiles/cmake.log
...
jobs:
build-GEOSgcm:
parameters:
compiler:
type: string
executor: << parameters.compiler >>
working_directory: /root/project
steps:
- run:
name: "GEOS_Shared branch"
command: echo ${CIRCLE_BRANCH}
...
- cmake:
repo: GEOSgcm
compiler: << parameters.compiler >>
I do not see “Run CMake”, the description
of the command, I see:
Uh. It’s explicit if nothing else. I tried adding a name
like in my echo step seen above, but circleci config validate
wasn’t happy.
Is there a way to get the Dashboard to just show “Run CMake” instead of the actual command?