diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile index 62134c3..c5e4f93 100644 --- a/jenkins/Jenkinsfile +++ b/jenkins/Jenkinsfile @@ -1,4 +1,9 @@ pipeline { + environment { + registry = "housewrecker/gaps" + registryCredential = 'dockerhub' + } + agent { docker { image 'adoptopenjdk/maven-openjdk8' @@ -21,14 +26,13 @@ pipeline { } } } - stage('Install Node') { - steps { - sh 'apt-get install -y curl \ - && curl -sL https://deb.nodesource.com/setup_12.x | bash - \ - && apt-get install -y nodejs \ - && curl -L https://www.npmjs.com/install.sh | sh' - sh 'npm install' + stage('Building image') { + steps{ + script { + docker.build registry + ":$BUILD_NUMBER" + } } } +} } } \ No newline at end of file diff --git a/package.json b/package.json index 3d712e1..a22fa44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gaps", - "version": "0.2.2-alpha", + "version": "0.2.2", "description": "Gaps searches through your Plex Server or local folders for all movies, then queries for known movies in the same collection. If those movies don't exist in your library, Gaps will recommend getting those movies, legally of course.", "main": "/", "dependencies": {},