➜ openssl dgst -sha256 openssl-1.1.1.tar.gz
SHA256(openssl-1.1.1.tar.gz)= 2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d
➜ cat openssl-1.1.1.tar.gz.sha256
2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d
➜ openssl dgst -sha256 openssl-1.1.1.tar.gz
SHA256(openssl-1.1.1.tar.gz)= 2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d
➜ cat openssl-1.1.1.tar.gz.sha256
2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d
| import hudson.model.User | |
| import jenkins.model.Jenkins | |
| import hudson.security.HudsonPrivateSecurityRealm | |
| import hudson.security.HudsonPrivateSecurityRealm.Details | |
| def instance = Jenkins.getInstance() | |
| def realm = instance.getSecurityRealm() | |
| def users = realm.getAllUsers() | |
| def generator = { int n -> |
| import com.cloudbees.plugins.credentials.CredentialsNameProvider | |
| import com.cloudbees.plugins.credentials.Credentials | |
| import com.cloudbees.plugins.credentials.CredentialsProvider | |
| import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials | |
| import com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey | |
| import org.jenkinsci.plugins.plaincredentials.StringCredentials | |
| import org.jenkinsci.plugins.plaincredentials.FileCredentials | |
| String checksum( String input ) { |
configure {
| FROM php:7.3-alpine | |
| # This image is ready to build projects using technologies: | |
| # - PHP7 (with Lumen) | |
| # - Angular v8 | |
| # Check stack details in: https://confluence.agile.corp.edp.pt/display/TNG/PHP7 | |
| ENV COMPOSER_VERSION=1.9.3 \ | |
| COMPOSER_CACHE_DIR=/tmp/.composer/cache \ |
| #!/bin/bash | |
| mkdir -p ssl | |
| cat << EOF > ssl/req.cnf | |
| [req] | |
| req_extensions = v3_req | |
| distinguished_name = req_distinguished_name | |
| [req_distinguished_name] | |
| [ v3_req ] |
| #!/bin/bash | |
| mkdir -p ssl | |
| cat << EOF > ssl/req.cnf | |
| [req] | |
| req_extensions = v3_req | |
| distinguished_name = req_distinguished_name | |
| [req_distinguished_name] |
| import com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey | |
| import com.cloudbees.plugins.credentials.CredentialsScope | |
| import com.cloudbees.plugins.credentials.SystemCredentialsProvider | |
| import com.cloudbees.plugins.credentials.common.StandardCredentials | |
| import com.cloudbees.plugins.credentials.domain.Domain | |
| import com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl | |
| import hudson.util.Secret | |
| import org.apache.commons.fileupload.FileItem | |
| import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl |