From 046b6473007286ece2f0791ca072c4124106c802 Mon Sep 17 00:00:00 2001 From: ShayKllifAlon Date: Sat, 24 Dec 2022 17:37:05 +0200 Subject: [PATCH 1/4] no pr file in dev --- infra/jenkins/prod/PullRequest.Jenkinsfile | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 infra/jenkins/prod/PullRequest.Jenkinsfile diff --git a/infra/jenkins/prod/PullRequest.Jenkinsfile b/infra/jenkins/prod/PullRequest.Jenkinsfile deleted file mode 100644 index c9cfb7f9..00000000 --- a/infra/jenkins/prod/PullRequest.Jenkinsfile +++ /dev/null @@ -1,21 +0,0 @@ -pipeline { - agent any - - stages { - stage('Unittest Bot') { - steps { - echo 'testing bot...' - } - } - stage('Unittest Worker') { - steps { - echo 'testing worker...2' - } - } - stage('Linting test') { - steps { - echo 'code linting' - } - } - } -} \ No newline at end of file From 38cf309e34c3c2fc88b8779a19d15427f29ccdbe Mon Sep 17 00:00:00 2001 From: ShayKllifAlon Date: Sat, 24 Dec 2022 17:45:38 +0200 Subject: [PATCH 2/4] last --- services/bot/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/bot/app.py b/services/bot/app.py index abb15580..ab29dab8 100644 --- a/services/bot/app.py +++ b/services/bot/app.py @@ -81,4 +81,5 @@ def _message_handler(self, update, context): my_bot = YoutubeObjectDetectBot(_token) my_bot.send_text(my_bot.updater, "greetings :-)") + my_bot.start() From 620e1038a84a9f6301b45242494e933615bc3245 Mon Sep 17 00:00:00 2001 From: ShayKllifAlon Date: Sat, 24 Dec 2022 17:51:33 +0200 Subject: [PATCH 3/4] pr file back --- infra/jenkins/prod/PullRequest.Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 infra/jenkins/prod/PullRequest.Jenkinsfile diff --git a/infra/jenkins/prod/PullRequest.Jenkinsfile b/infra/jenkins/prod/PullRequest.Jenkinsfile new file mode 100644 index 00000000..c9cfb7f9 --- /dev/null +++ b/infra/jenkins/prod/PullRequest.Jenkinsfile @@ -0,0 +1,21 @@ +pipeline { + agent any + + stages { + stage('Unittest Bot') { + steps { + echo 'testing bot...' + } + } + stage('Unittest Worker') { + steps { + echo 'testing worker...2' + } + } + stage('Linting test') { + steps { + echo 'code linting' + } + } + } +} \ No newline at end of file From e384a92a324582bac8058d2a3114a88ac07064e2 Mon Sep 17 00:00:00 2001 From: ShayKllifAlon Date: Sun, 25 Dec 2022 18:14:04 +0200 Subject: [PATCH 4/4] new push --- services/bot/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/bot/app.py b/services/bot/app.py index ab29dab8..3772e468 100644 --- a/services/bot/app.py +++ b/services/bot/app.py @@ -68,6 +68,7 @@ def _message_handler(self, update, context): self.send_text(update, f'Something went wrong, please try again...') + if __name__ == '__main__': with open('secrets/.telegramToken') as f: _token = f.read()