32 bits version
$ wget https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-32.tar.xz -O popcorntime.tar.xz64 bits version
| # Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/ | |
| # GitLab uses docker in the background, so we need to specify the | |
| # image versions. This is useful because we're freely to use | |
| # multiple node versions to work with it. They come from the docker | |
| # repo. | |
| # Uses NodeJS V 9.4.0 | |
| image: node:9.4.0 | |
| # And to cache them as well. |
| # To regenerate the test key and certificates | |
| # Generate an RSA private key and convert it to PKCS8 wraped in PEM | |
| openssl genrsa 2048 | openssl pkcs8 -topk8 -inform pem -outform pem -nocrypt -out rsa.key | |
| # Generate a certificate signing request with the private key | |
| openssl req -new -key rsa.key -out rsa.csr | |
| # Sign request with private key | |
| openssl x509 -req -days 10000 -in rsa.csr -signkey rsa.key -out rsa.crt | |
| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
| #!/bin/sh | |
| # Install Java-8 | |
| #sudo add-apt-repository ppa:webupd8team/java -y | |
| #sudo apt-get update | |
| #echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
| #echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
| #sudo apt-get install oracle-java8-installer oracle-java9-installer oracle-java9-set-default | |
| sudo apt-get install openjdk-8-jdk |
| // Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
| import hudson.model.*; | |
| import hudson.util.*; | |
| import jenkins.model.*; | |
| import hudson.FilePath.FileCallable; | |
| import hudson.slaves.OfflineCause; | |
| import hudson.node_monitors.*; | |
| for (node in Jenkins.instance.nodes) { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration scan="true"> | |
| <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"> | |
| <encoder> | |
| <charset>UTF-8</charset> | |
| <Pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern> | |
| </encoder> | |
| </appender> | |
| <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |