Skip to content

Instantly share code, notes, and snippets.

Tamas Gal tamasgal

Block or report user

Report or block tamasgal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tamasgal / Jenkinsfile
Created May 29, 2018
Getting a list of filenames in a given directory
View Jenkinsfile
import static
node('master') {
FILES_DIR = './foo'
sh """
mkdir foo
touch foo/bar1
tamasgal / Jenkinsfile
Created Apr 27, 2018
Jenkinsfile for parallel Docker images (Python)
View Jenkinsfile
def docker_images = ["python:3.5.5", "python:3.6.4", "python:3.6.5"]
def get_stages(docker_image) {
stages = {
docker.image(docker_image).inside {
// If I use this variable as the Virtual Env Folder,
// I get "permission denied" messages from pip, since it tries
// to install into /usr/local/... instead of the pyenv folder!
// def PYTHON_VENV = docker_image.replaceAll('[:.]', '') + 'venv'
tamasgal / ParallelDockerJenkinsfile
Last active Oct 10, 2019
Looping through a list of docker images and execute their stages in parallel. More info here:
View ParallelDockerJenkinsfile
def docker_images = ["python:2.7.14", "python:3.5.4", "python:3.6.2"]
def get_stages(docker_image) {
stages = {
docker.image(docker_image).inside {
stage("${docker_image}") {
echo 'Running in ${docker_image}'
stage("Stage A") {
switch (docker_image) {
tamasgal / Jenkinsfile
Created Apr 12, 2018 — forked from oifland/Jenkinsfile
Loops in Jenkinsfiles
View Jenkinsfile
// Related to
abcs = ['a', 'b', 'c']
node('master') {
stage('Test 1: loop of echo statements') {
stage('Test 2: loop of sh commands') {
tamasgal / hdf5_simple.cpp
Created Mar 15, 2016 — forked from YukiSakamoto/hdf5_simple.cpp
simple example to write hdf5 using c++.
View hdf5_simple.cpp
#include <string>
#include <iostream>
#include "H5Cpp.h"
#define MAX_NAME_LENGTH 32
const std::string FileName("SimpleCompound.h5");
const std::string DatasetName("PersonalInformation");
const std::string member_age("Age");
const std::string member_sex("Sex");
const std::string member_name("Name");
tamasgal /
Created Mar 13, 2014
Tributary inlet
You can’t perform that action at this time.