Hello everyone,
I am trying to create a pipeline to run a certain .py app and a dockerfile aswell
and I cant seem to execute either of them… I spent quite some time trying to search online and have not found anything yet.
Any help is appreciated,
pipeline {
agent any
stages {
stage('1') {
steps {
git 'https://github.com/awakzdev/WorldofGames'
}
}
stage('2') {
steps {
sh '''pwd
ls -l'''
}
}
stage('3') {
steps {
sh "chmod +x -R ${env.WORKSPACE}"
}
}
stage('4') {
steps {
sh '''#!/bin/sh
/var/jenkins_home/workspace/first-k8-pipeline/test.py'''
}
}
}
}