17 checkout scm: [$class: 'GitSCM', userRemoteConfigs: [[url: 'https://github.com/sebdet/oran-deployment.git']], branches: [[name: env.BRANCH]], extensions: [[$class: 'SubmoduleOption', recursiveSubmodules: true]]], poll: false
19 container('jenkins-ubuntu') {
20 stage ('Proxy settings') {
24 sh 'echo \'Acquire::http::Proxy "' + env.http_proxy + '";\' > /etc/apt/apt.conf.d/proxy.conf'
25 sh 'cat /etc/apt/apt.conf.d/proxy.conf'
26 sh 'echo "http_proxy = "'+env.http_proxy+' > ~/.wgetrc'
29 sh 'echo \'Acquire::https::Proxy "' + env.http_proxy + '";\' >> /etc/apt/apt.conf.d/proxy.conf'
30 sh 'cat /etc/apt/apt.conf.d/proxy.conf'
31 sh 'echo "https_proxy = "'+env.http_proxy+' >> ~/.wgetrc'
34 proxies='HTTPS_PROXY='+env.http_proxy+' '
40 stage('Setup tools') {
41 sh 'apt-get update -y'
42 sh 'DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata'
43 sh 'apt-get install git wget sudo -y'
44 sh 'wget https://dl.k8s.io/release/v1.22.0/bin/linux/amd64/kubectl'
45 sh 'mv kubectl /usr/bin'
46 sh 'chmod a+x /usr/bin/kubectl'
50 sh './scripts/sub-scripts/uninstall-nonrtric.sh'
51 sh './scripts/sub-scripts/uninstall-onap.sh'