Commit 0f96e8cb authored by Shoaib Ahmed's avatar Shoaib Ahmed

Jenkinsfile docker to any

parent 0c1add75
#!/usr/bin/env groovy
pipeline { pipeline {
agent { docker { image 'php:8.1.0-alpine' } }
agent {
docker {
image 'node'
args '-u root'
}
}
stages { stages {
stage('Build') { stage('build') {
steps {
echo 'Building...'
sh 'npm install'
}
}
stage('Test') {
steps { steps {
echo 'Testing...' sh 'php --version'
sh 'npm test'
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment