diff --git a/.env.production b/.env.production index 40732d0..7cca5b6 100644 --- a/.env.production +++ b/.env.production @@ -1 +1 @@ -BASE_RSS_FEED=https://rss.plex.tv/ \ No newline at end of file +BASE_RSS_FEED=https://rss.plex.tv/d949de26-087e-4c7b-94d3-0f36b982ba21 \ No newline at end of file diff --git a/CodeAnalysisJenkinsfile b/CodeAnalysisJenkinsfile index 815a91c..7b92a25 100644 --- a/CodeAnalysisJenkinsfile +++ b/CodeAnalysisJenkinsfile @@ -11,7 +11,7 @@ pipeline { DEPCHECK_SCAN_ACCOUNT = credentials('DEPCHECK_SCAN_ACCOUNT') DEPCHECK_CONNSTRING = credentials('DEPCHECK_CONNSTRING') SONATYPE_OSSINDEX_API_KEY = credentials('SONATYPE_OSSINDEX_API_KEY') - SONAR_SCANNER_OPTS = '-Xmx128m' + SONAR_SCANNER_OPTS = '-Xmx768m' } stages { stage('Install Python Virtual Enviroment') { diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6a5e64e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,74 @@ +pipeline { + agent { + label 'python311 && amd64' + } + options { + disableConcurrentBuilds() + } + + tools {nodejs "Node 20"} + + stages { + stage('Install Python Virtual Enviroment') { + steps { + sh 'python3.11 -m venv env' + } + } + + stage('Install Application Dependencies') { + steps { + sh ''' + . env/bin/activate + pip3.11 install --upgrade pip + pip3.11 install -r requirements.txt + corepack enable + npm install + deactivate + ''' + } + } + + stage('Build') { + steps { + sh 'npm run build' + } + } + + stage('Deploy if tagged') { + // when { + // tag pattern: '(\d+\.){3}', comparator: "REGEXP" + // } + steps { + s3Upload profileName: 'Irrsinn.net Buckets', + userMetadata: [], + dontWaitForConcurrentBuildCompletion: false, + dontSetBuildResultOnFailure: false, + pluginFailureResultConstraint: 'FAILURE', + consoleLogLevel: 'INFO', + entries: [[ + bucket: 'plex-watchlist', + sourceFile:'dist/**', + managedArtifacts: false, + keepForever: true, + noUploadOnFailure: true, + selectedRegion: 'us-east-1' + ]] + } + } + + } + post { + cleanup { + cleanWs() + dir("${env.WORKSPACE}@tmp") { + deleteDir() + } + dir("${env.WORKSPACE}@2") { + deleteDir() + } + dir("${env.WORKSPACE}@2@tmp") { + deleteDir() + } + } + } +} diff --git a/src/components/Watchlist/index.js b/src/components/Watchlist/index.js index f727e0c..978f3fc 100644 --- a/src/components/Watchlist/index.js +++ b/src/components/Watchlist/index.js @@ -39,7 +39,6 @@ export default function Watchlist() { return ( <> -

Plex Watchlist

{!isPending && (