diff --git a/Jenkinsfile b/Jenkinsfile index da9c3aaa..f6c64eb5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,12 @@ pipeline { - agent { - node { - label 'docker-agent-python' - } - } - triggers { - pollSCM '* * * * *' - } + agent any // Allocate an agent for the entire pipeline + stages { stage('Build') { steps { echo "Building.." sh ''' - cd myapp - pip install -r requirements.txt + echo "doing build stuff.." ''' } } @@ -21,9 +14,7 @@ pipeline { steps { echo "Testing.." sh ''' - cd myapp - python3 hello.py - python3 hello.py --name=Brad + echo "doing test stuff.." ''' } } @@ -36,4 +27,4 @@ pipeline { } } } -} \ No newline at end of file +} diff --git a/Jenkinsfile.template b/Jenkinsfile.template deleted file mode 100644 index 527df5d2..00000000 --- a/Jenkinsfile.template +++ /dev/null @@ -1,33 +0,0 @@ -pipeline { - agent { - node { - label 'jenkins-agent-goes-here' - } - } - stages { - stage('Build') { - steps { - echo "Building.." - sh ''' - echo "doing build stuff.." - ''' - } - } - stage('Test') { - steps { - echo "Testing.." - sh ''' - echo "doing test stuff.. - ''' - } - } - stage('Deliver') { - steps { - echo 'Deliver....' - sh ''' - echo "doing delivery stuff.." - ''' - } - } - } -} \ No newline at end of file diff --git a/helloworld.py b/helloworld.py index daa3c4af..96b1c244 100644 --- a/helloworld.py +++ b/helloworld.py @@ -1,2 +1,2 @@ -print("Hello world") +print("my name is kareem")