-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing jenkinsfile for new k8s slaves #231
Fixing jenkinsfile for new k8s slaves #231
Conversation
CI/JenkinsfileTestCleanInstance
Outdated
docker cp polycubed:/usr/local/bin/polycubectl ./bin/ | ||
docker run -d --name \$container --rm --privileged --pid=host --cap-add ALL --network host -v /proc:/host/proc -v /lib/modules:/lib/modules:ro -v /var/run/netns/:/var/run/netns:rw -v /usr/src:/usr/src:ro -v /etc/localtime:/etc/localtime:ro polycubebot/${image_name}-default:${image_tag} | ||
|
||
# Copying binaries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the silly question: is there any way to define this code ones, such as with a function? It looks we have a lot of duplicated code here.
@michelsciortino Two comments.
|
280adeb
to
56b3445
Compare
…tables & pcn-nat test netcat timeouts - NEW: CI/extract_from_docker_image.sh script extracts all the binaries, headers and libraries from docker image to the slave's file-system - NEW: CI/clean_slave.sh script cleans the slave's file-system deleting all the file extracted by CI/extract_from_docker_image.sh - Jenkins test stages now run CI/extract_from_docker_image.sh, execute the tests and run CI/clean_slave.sh - pcn-pbforwarder tests have been modified as they used a wrong grep regex to obtain the mac addresses of the namespaces 'HWaddr \K.*$' -> 'ether \K[a-fA-F0-9:]{17}|[a-fA-F0-9]{12}$' - all the netcat timeouts have been increased from 2 to 5 seconds in pcn-nat's and pcn-iptables's tests
56b3445
to
49cbc4d
Compare
Hi @michelsciortino, thanks for this! |
This PR has been created to fix Jenkins pipeline for new k8s slaves:
CI/extract_from_docker_image.sh
script extracts all the binaries, headers and librariesfrom docker image to the slave file-system
CI/clean_slave.sh
script cleans the slave's file-system deleting all the file extracted byCI/extract_from_docker_image.sh
CI/extract_from_docker_image.sh
, execute tests and runCI/clean_slave.sh
pcn-pbforwarder
tests have been modified as they were using a wrong grep regex to obtain the mac addresses of the namespaces'HWaddr \K.*$'
->'ether \K[a-fA-F0-9:]{17}|[a-fA-F0-9]{12}$'
netcat
timeouts have been increased from 2 to 5 seconds inpcn-nat
's andpcn-iptables
's testsJenkins pipeline is partially fixed as there is still a failing test of
pcn-iptables
(local_test_interfaces1.sh
): a new Issue will be opened soon to report this.Clean Instance Tests
andSame Instance Tests
now work and can be used as mandatory checks for new PRs.