This is an old revision of the document!
student@gate:~$ git clone http://server.corp13.un:3000/student/squid-project.git student@gate:~$ cd squid-project/ student@gate:~/squid-project$ sudo /usr/sbin/squid -k check -f conf.d/my.conf student@gate:~/squid-project$ sudo /bin/cp -r ./* /etc/squid/ student@gate:~/squid-project$ sudo /usr/sbin/squid -k reconfigure
pipeline { agent { node { label 'gate' } } stages { stage('Test') { steps { sh 'sudo /usr/sbin/squid -k check -f conf.d/my.conf' } } stage('Deploy') { steps { sh 'sudo /bin/cp -r ./* /etc/squid/' sh 'sudo /usr/sbin/squid -k reconfigure' } } } }