Catch 2 Update #538
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "mueller/catch2-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FetchContent
on CI server. Use versionv3.0.0-preview4
now.I am not sure if it is good to build the docker image with a fixed tag.
As the build job runs for quite some time there might be more than one ob running at the same time. Those would share the docker tag and as such the image. Worst case, the docker image could change between different stages of one job as another job rebuilt the image with different dockerfile.
Was there a problem with the
dockerfile { dir 'automation'
option? As far as I can tell, when theadditionalBuildArgs '--no-cache'
option was not set, docker reused its cache to rebuild the image quite fast.No, this can be reverted, I've taken this from the EIVE dockerfile. If the other way is better, this should be fixed in the Dockerfile of
eive-obsw
as well.Any idea on why it is not building now are appreciated :)
Variables only need to be referenced as
"$VARIABLE"
when used inside the steps. When used in the context of the Jenkinsfile itself, the can just be used asVARIABLE
.Build seems to run now.
As for the docker handling, I would vote on keeping the dockerfile syntax and thus also use it in eive-obsw.
As for the build steps, right now,
stage('Create Docker')
also cleans, makingstage('Clean')
redundant.In a conversation with Robin S and Jonas, they suggested always reebuilding the docker (which we do right now) and also always doing a clean build in the CI to just avoid any "stuck" issues rightaway.
I think that we should do so, the time wasted on always cleaning is insignificant in realtion to the time spent building the docker image.
Cleaned up Jenkinsfile.
Now, docker pulls base image and rebuilds docker image on each run.
All steps are perfomed in one single docker container.
I like what I did here.