diff --git a/Jenkinsfile b/Jenkinsfile index a17e4d55e..b403b059b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,81 +1,75 @@ pipeline { agent none environment { HOME = "$WORKSPACE" GIT_COMMITTER_NAME = 'jenkins' GIT_COMMITTER_EMAIL = 'jenkins@c4science.ch' MYSQL_ROOT_PASSWORD = 'root' } options { checkoutToSubdirectory('phabricator') } stages { stage('services') { steps { script { var docker_mysql = docker.image('mariadb:5').withRun('-e MYSQL_ROOT_PASSWORD=root') docker_mysql.inside { sh 'while ! mysqladmin ping -h0.0.0.0 --silent; do sleep 1; done' } var docker_httpd = docker.image('httpd:2.4-alpine') docker_httpd.inside { sh 'while ! wget -q 127.0.0.1; do sleep 1; done' } } } } stage('install phabricator'){ agent { dockerfile { additionalBuildArgs '--tag arcanist' dir 'phabricator' } } steps { sh ''' git clone -b stable https://c4science.ch/source/libphutil.git git clone -b stable https://secure.phabricator.com/diffusion/ARC/arcanist.git ''' sh ''' cd phabricator ./bin/config set mysql.host localhost ./bin/config set mysql.user root ./bin/config set mysql.pass root ./bin/storage upgrade --force ''' } } stage('arcanist') { agent { dockerfile { additionalBuildArgs '--tag arcanist' dir 'phabricator' } } steps { sh 'arc lint --everything --severity error' sh 'arc unit --everything --rev HEAD^' } } stage('celerity') { agent { dockerfile { additionalBuildArgs '--tag arcanist' dir 'phabricator' } } steps { sh './bin/celerity map' } } } - post { - always { - //archiveArtifacts artifacts: './resources/celerity/map.php' - //cleanWs() - } - } }