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

Jenkinsfile docker to any

parent 93a42dd9
#!/usr/bin/env groovy
pipeline { pipeline {
agent { any { 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 {
sh 'php --version' echo 'Testing...'
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