go.ligato.io/vpp-agent/v3@v3.5.0/tests/jenkins/vpp_agent_jobs/Setup_Jenkins_container.yml (about) 1 - job: 2 block-downstream: false 3 block-upstream: false 4 builders: 5 - shell: "# install sshpass\napt-get update\napt-get install sshpass\n\n# get\ 6 \ info about python\npython --version\npip --version | :\n\n# update python\ 7 \ libraries\napt-get -y install python-pip\npip install robotframework==3.0.4\n\ 8 pip install robotframework-requests==0.4.7\n#pip install robotframework-sshlibrary\n\ 9 #https://github.com/robotframework/SSHLibrary/issues/301\npip install robotframework-sshlibrary==3.0.0\n\ 10 pip install jenkins-job-builder\npip install jenkins-job-wrecker\npip freeze\n\ 11 \n# Andrej Kilv\xE1dy: vpp-agent$ pip freeze\ncat > requirements << TEXT\n\ 12 adium-theme-ubuntu==0.3.4\nbeautifulsoup4==4.6.0\ncertifi==2018.4.16\nchardet==3.0.4\n\ 13 ecdsa==0.13\nidna==2.6\njsonpatch==1.23\njsonpointer==2.0\nparamiko==1.16.0\n\ 14 pycrypto==2.6.1\npygobject==3.20.0\nrequests==2.18.4\nrobotframework==3.0.4\n\ 15 robotframework-httplibrary==0.4.2\nrobotframework-requests==0.4.7\nrobotframework-sshlibrary==3.0.0\n\ 16 six==1.11.0\nunity-lens-photos==1.0\nurllib3==1.22\nwaitress==1.1.0\nWebOb==1.8.1\n\ 17 WebTest==2.0.29\nTEXT\n\n#pip install -r requirements.txt\n\n# install vim\n\ 18 apt-get -y install vim\napt-get -y install mc\n\n# allow to open logs files\ 19 \ directly from browser\necho \"fix also this:\"\necho \"https://stackoverflow.com/questions/36607394/error-opening-robot-framework-log-failed\"\ 20 \n#http://147.75.83.101:8080/script\n#System.setProperty(\"hudson.model.DirectoryBrowserSupport.CSP\"\ 21 ,\"sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src\ 22 \ 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval'\ 23 \ ;\")\n\n# timezone fix\necho \"fix also timezone\"\necho \"https://stackoverflow.com/questions/42202070/how-to-change-the-time-zone-in-jenkins\"\ 24 \n\n#jenkins-jobs password\necho \"set jenkins jobs password\"\necho \"https://docs.openstack.org/infra/jenkins-job-builder/execution.html\"\ 25 \n\n# install helm\n#get https://storage.googleapis.com/kubernetes-helm/helm-v2.10.0-linux-amd64.tar.gz\n\ 26 #tar -xvf helm-v2.10.0-linux-amd64.tar.gz\n#echo $PATH\n#cp linux-amd64/helm\ 27 \ /bin\n#helm --help\n#rm -rf linux-amd64\n\n#no pybot file !?!?!?!?!\ncat\ 28 \ <<PYBOT > /usr/local/bin/pybot\n#!/usr/bin/python\n\nimport sys\nfrom robot\ 29 \ import run_cli\n\nrun_cli(sys.argv[1:])\nPYBOT\nchmod 755 /usr/local/bin/pybot\n\ 30 \ngit config --global user.email \"stanislav.chlebec@pantheon.tech\"\ngit\ 31 \ config --global user.name \"Stanislav Chlebec\"" 32 concurrent: false 33 description: |- 34 After docker pull jenkins.jenkins:lts stopped to work sshpass, pip, ... 35 The intention of this Jenkins job is renew some tools *required* by other Jenkins jobs. 36 (Also after killing container these installed tools are lost - there is the need to install them again) 37 disabled: false 38 name: Setup Jenkins container 39 node: master 40 project-type: freestyle 41 properties: 42 - build-discarder: 43 artifact-days-to-keep: -1 44 artifact-num-to-keep: -1 45 days-to-keep: -1 46 num-to-keep: 2 47 - raw: 48 xml: | 49 <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> 50 <maxConcurrentPerNode>0</maxConcurrentPerNode> 51 <maxConcurrentTotal>0</maxConcurrentTotal> 52 <categories class="java.util.concurrent.CopyOnWriteArrayList" /> 53 <throttleEnabled>false</throttleEnabled> 54 <throttleOption>project</throttleOption> 55 <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> 56 <paramsToUseForLimit /> 57 </hudson.plugins.throttleconcurrents.ThrottleJobProperty> 58 publishers: [] 59 triggers: [] 60 wrappers: []