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

Jenkinsfile docker to any

parent 0c1add75
#!/usr/bin/env groovy
pipeline {
agent {
docker {
image 'node'
args '-u root'
}
}
agent { docker { image 'php:8.1.0-alpine' } }
stages {
stage('Build') {
steps {
echo 'Building...'
sh 'npm install'
}
}
stage('Test') {
stage('build') {
steps {
echo 'Testing...'
sh 'npm test'
sh 'php --version'
}
}
}
......
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